| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function __call($name, $params) |
||
| 24 | { |
||
| 25 | if (StringHelper::startsWith($name, 'getMessage')) { |
||
| 26 | $property = $this->{lcfirst(substr($name, 3))}; |
||
| 27 | if ($property instanceof \Closure) { |
||
| 28 | return call_user_func_array($property, $params); |
||
| 29 | } |
||
| 30 | return $property; |
||
| 31 | } |
||
| 32 | return parent::__call($name, $params); |
||
| 33 | } |
||
| 34 | } |