X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FUtils%2FFakeObject.php;h=7052d6867c5a4616a4bcd245f7dd71023cd91041;hb=2d927f030a59e04c773be70ea411fd9aee7a746a;hp=a7b71b8a9f4b913e3c35a6de9a9ff0f7019827cd;hpb=100fef9d739cd6f5377269d230510c328e484c8c;p=civicrm-core.git diff --git a/CRM/Utils/FakeObject.php b/CRM/Utils/FakeObject.php index a7b71b8a9f..7052d6867c 100644 --- a/CRM/Utils/FakeObject.php +++ b/CRM/Utils/FakeObject.php @@ -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"); } } + }