ConfigProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 6
c 1
b 1
f 0
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Pheature\Model\Toggle\Container;
6
7
use Pheature\Model\Toggle\SegmentFactory;
8
use Pheature\Model\Toggle\SegmentFactoryFactory;
9
use Pheature\Model\Toggle\StrategyFactory;
10
use Pheature\Model\Toggle\StrategyFactoryFactory;
11
12
final class ConfigProvider
13
{
14
    /**
15
     * @return array<string, array<string, array<string, string>>>
16
     */
17 1
    public function __invoke(): array
18
    {
19
        return [
20
            'dependencies' => [
21
                'factories' => [
22 1
                    StrategyFactory::class => StrategyFactoryFactory::class,
23
                    SegmentFactory::class => SegmentFactoryFactory::class,
24
                ],
25
            ],
26
        ];
27
    }
28
}
29