1 | <?php |
||
10 | class AdapterChainServiceFactory implements FactoryInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var ModuleOptions |
||
15 | */ |
||
16 | protected $options; |
||
17 | |||
18 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
39 | |||
40 | |||
41 | /** |
||
42 | * set options |
||
43 | * |
||
44 | * @param ModuleOptions $options |
||
45 | * @return AdapterChainServiceFactory |
||
46 | */ |
||
47 | public function setOptions(ModuleOptions $options) |
||
52 | |||
53 | /** |
||
54 | * get options |
||
55 | * |
||
56 | * @param ServiceLocatorInterface $serviceLocator (optional) Service Locator |
||
57 | * @return ModuleOptions $options |
||
58 | * @throws OptionsNotFoundException If options tried to retrieve without being set but no SL was provided |
||
59 | */ |
||
60 | public function getOptions(ServiceLocatorInterface $serviceLocator = null) |
||
75 | } |
||
76 |