| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function invoke($eventName, array $params, $callee) { |
||
| 29 | if(!$this->isResponsible($eventName, $params, $callee)) { |
||
| 30 | return null; |
||
| 31 | } |
||
| 32 | $handler = $this->handlers[$eventName]; |
||
| 33 | if($handler['filterFn'] === null || call_user_func($handler['filterFn'], $eventName, $params, $callee)) { |
||
| 34 | return call_user_func($handler['callback'], $eventName, $params, $callee); |
||
| 35 | } |
||
| 36 | return null; |
||
| 37 | } |
||
| 38 | |||
| 49 |