Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
42 | public static function __callStatic($name, array $arguments) |
||
43 | { |
||
44 | // get a shared event manager in scope __STATIC__ |
||
45 | $mgr = static::getShareable('__STATIC__'); |
||
46 | |||
47 | if (method_exists($mgr, $name)) { |
||
48 | return call_user_func_array([$mgr, $name], $arguments); |
||
49 | } |
||
50 | |||
51 | throw new BadMethodCallException( |
||
52 | Message::get( |
||
53 | Message::MSG_METHOD_NOTFOUND, |
||
54 | $name, |
||
55 | get_called_class() |
||
56 | ), |
||
57 | Message::MSG_METHOD_NOTFOUND |
||
58 | ); |
||
59 | } |
||
60 | } |
||
61 |