| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 29 | public function add(object $handler): void |
||
| 30 | { |
||
| 31 | $handlerClass = \get_class($handler); |
||
| 32 | |||
| 33 | if (false === $this->stringEndsWith($handlerClass, 'CommandHandler')) { |
||
| 34 | return; |
||
| 35 | } |
||
| 36 | |||
| 37 | $commandClass = $this->getCommandClass($handlerClass); |
||
| 38 | |||
| 39 | $this->map[$commandClass] = $handler; |
||
| 40 | } |
||
| 41 | |||
| 54 |