ConfigProvider::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 5
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 7
ccs 2
cts 2
cp 1
crap 1
rs 10
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