| 1 | <?php |
||
| 14 | final class StaticServiceManager implements ServiceManager |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var array<string, Service> |
||
| 18 | */ |
||
| 19 | private $services; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | private $active; |
||
| 25 | |||
| 26 | public function __construct(array $services = [], array $active = []) |
||
| 38 | |||
| 39 | public function get(string $code): ?Service |
||
| 47 | |||
| 48 | public function getAll(): array |
||
| 52 | |||
| 53 | public function getActive(): array |
||
| 63 | } |
||
| 64 |