Merge pull request #4123 from eileenmcnaughton/CRM-15296
[civicrm-core.git] / CRM / Utils / FakeObject.php
index 68e36bf019f6d70e74cd5bc8f9dc70db6314eabb..0f87c043f81de366556f69c604153d0b22deaff3 100644 (file)
  * @endcode
  */
 class CRM_Utils_FakeObject {
+  /**
+   * @param $array
+   */
   function __construct($array) {
     $this->array = $array;
   }
 
+  /**
+   * @param $name
+   * @param $arguments
+   *
+   * @throws Exception
+   */
   function __call($name, $arguments) {
     if (isset($this->array[$name]) && is_callable($this->array[$name])) {
       return call_user_func_array($this->array[$name], $arguments);
@@ -23,4 +32,4 @@ class CRM_Utils_FakeObject {
       throw new Exception("Call to unimplemented method: $name");
     }
   }
-}
\ No newline at end of file
+}