Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function __call(/*# string */ $method, array $params) |
||
37 | { |
||
38 | $class = $this->getClassName() . '\\' . ucfirst(strtolower($method)); |
||
39 | if (class_exists($class)) { |
||
40 | return new $class($params[0]); |
||
41 | } |
||
42 | |||
43 | throw new BadMethodCallException( |
||
44 | Message::get(Message::MSG_METHOD_NOTFOUND, $method, $this), |
||
45 | Message::MSG_METHOD_NOTFOUND |
||
46 | ); |
||
47 | } |
||
48 | |||
60 |