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