| @@ 49-56 (lines=8) @@ | ||
| 46 | * |
|
| 47 | * @param $event |
|
| 48 | */ |
|
| 49 | protected function handle(Event $event) |
|
| 50 | { |
|
| 51 | $method = $this->getApplyMethod($event); |
|
| 52 | if (!method_exists($this, $method)) { |
|
| 53 | return; |
|
| 54 | } |
|
| 55 | $this->$method($event); |
|
| 56 | } |
|
| 57 | ||
| 58 | protected function handleRecursively(Event $event) |
|
| 59 | { |
|
| @@ 71-78 (lines=8) @@ | ||
| 68 | * |
|
| 69 | * @param $event |
|
| 70 | */ |
|
| 71 | protected function handle(Event $event) |
|
| 72 | { |
|
| 73 | $method = $this->getApplyMethod($event); |
|
| 74 | if (!method_exists($this, $method)) { |
|
| 75 | return; |
|
| 76 | } |
|
| 77 | $this->$method($event); |
|
| 78 | } |
|
| 79 | ||
| 80 | /** |
|
| 81 | * @param Event $event |
|