Passed
Pull Request — master (#1)
by Alex
06:41
created

DateIntervalFactoryFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arp\LaminasDateTime\Factory;
6
7
use Arp\DateTime\DateIntervalFactory;
8
use Arp\DateTime\Factory\DateIntervalFactoryFactory as ArpDateIntervalFactoryFactory;
9
use Arp\LaminasFactory\AbstractFactory;
10
use Interop\Container\ContainerInterface;
11
12
/**
13
 * @author  Alex Patterson <[email protected]>
14
 * @package Arp\LaminasDateTime\Factory
15
 */
16
final class DateIntervalFactoryFactory extends AbstractFactory
17
{
18
    /**
19
     * @param ContainerInterface $container
20
     * @param string             $requestedName
21
     * @param array|null         $options
22
     *
23
     * @return DateIntervalFactory
24
     *
25
     * @noinspection PhpMissingParamTypeInspection
26
     */
27
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null): DateIntervalFactory
28
    {
29
        return (new ArpDateIntervalFactoryFactory())->create();
30
    }
31
}
32