DateIntervalFactoryFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
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 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Arp\LaminasDateTime\Factory;
6
7
use Arp\DateTime\DateIntervalFactory;
8
use Arp\LaminasFactory\AbstractFactory;
9
use Psr\Container\ContainerInterface;
10
11
final class DateIntervalFactoryFactory extends AbstractFactory
12
{
13
    public function __invoke(
14
        ContainerInterface $container,
15
        string $requestedName,
16
        array $options = null
17
    ): DateIntervalFactory {
18
        return new DateIntervalFactory();
19
    }
20
}
21