| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 16 | class CurrentDateTimeProviderFactory implements FactoryInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var FactoryInterface |
||
| 20 | */ |
||
| 21 | private FactoryInterface $dateTimeFactoryFactory; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param FactoryInterface|null $dateTimeFactoryFactory |
||
| 25 | */ |
||
| 26 | public function __construct(FactoryInterface $dateTimeFactoryFactory = null) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param array $config |
||
| 33 | * |
||
| 34 | * @return CurrentDateTimeProvider |
||
| 35 | * |
||
| 36 | * @throws FactoryException If the date time provider cannot be created. |
||
| 37 | */ |
||
| 38 | public function create(array $config = []): CurrentDateTimeProvider |
||
| 49 |