Merge pull request #5242 from colemanw/getstat
[civicrm-core.git] / CRM / Utils / FakeObject.php
index a7b71b8a9f4b913e3c35a6de9a9ff0f7019827cd..7052d6867c5a4616a4bcd245f7dd71023cd91041 100644 (file)
@@ -15,7 +15,7 @@ class CRM_Utils_FakeObject {
   /**
    * @param $array
    */
-  function __construct($array) {
+  public function __construct($array) {
     $this->array = $array;
   }
 
@@ -25,11 +25,13 @@ class CRM_Utils_FakeObject {
    *
    * @throws Exception
    */
-  function __call($name, $arguments) {
+  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");
     }
   }
+
 }