1 | <?php |
||
7 | class SimpleHandlerFactory implements HandlerFactoryInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private $handlers; |
||
13 | |||
14 | /** |
||
15 | * @param array $handlers |
||
16 | */ |
||
17 | 4 | public function __construct(array $handlers = []) |
|
21 | |||
22 | /** |
||
23 | * @inheritdoc |
||
24 | */ |
||
25 | 4 | public function get($name) |
|
42 | |||
43 | /** |
||
44 | * Get the handler |
||
45 | * |
||
46 | * @param string $name |
||
47 | * |
||
48 | * @return mixed|null |
||
49 | */ |
||
50 | 4 | private function getHandler($name) |
|
54 | } |
||
55 |