| 1 | <?php |
||
| 8 | trait HandlerContainerTrait |
||
| 9 | { |
||
| 10 | /** @var \SplStack|HandlerInterface[] */ |
||
| 11 | protected $handlers; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @return HandlerInterface[] |
||
| 15 | */ |
||
| 16 | 3 | public function getHandlers() |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @inheritdoc |
||
| 25 | */ |
||
| 26 | 15 | public function setHandlers(array $handlers) |
|
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritdoc |
||
| 34 | */ |
||
| 35 | 16 | public function pushHandler(HandlerInterface ...$handlers) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @param bool $reset |
||
| 46 | */ |
||
| 47 | 17 | protected function initHandlers($reset = false) |
|
| 53 | } |
||
| 54 |