| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function __invoke(ContainerInterface $container, string $requestedName, array $options = null): SystemClock |
||
| 19 | { |
||
| 20 | $options = $options ?? $this->getServiceOptions($container, $requestedName, 'laminas_date_time'); |
||
| 21 | |||
| 22 | if (empty($options['factory'])) { |
||
| 23 | throw new ServiceNotCreatedException( |
||
| 24 | sprintf('The required \'factory\' configuration option is missing for service \'%s\'', $requestedName), |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | |||
| 28 | return new SystemClock( |
||
| 29 | $this->getService($container, $options['factory'], $requestedName), |
||
| 30 | ); |
||
| 33 |