X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FFakeObject.php;h=0f87c043f81de366556f69c604153d0b22deaff3;hb=e0c4f234b9eab061bade28bd91a39f8912f9e2be;hp=68e36bf019f6d70e74cd5bc8f9dc70db6314eabb;hpb=feb07870854e6e0081670f2fe33faf579b737eba;p=civicrm-core.git diff --git a/CRM/Utils/FakeObject.php b/CRM/Utils/FakeObject.php index 68e36bf019..0f87c043f8 100644 --- a/CRM/Utils/FakeObject.php +++ b/CRM/Utils/FakeObject.php @@ -12,10 +12,19 @@ * @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 +}