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

DateIntervalFactoryFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
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