* @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
+
+}