ConcreteClass::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 5
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\BindingInterfacesInGacelaConfigFile\Module\Infrastructure;
6
7
use GacelaTest\Feature\Framework\BindingInterfacesInGacelaConfigFile\Module\Domain\AbstractClass;
8
9
final class ConcreteClass extends AbstractClass
10
{
11
    public function __construct(
12
        private readonly bool $bool,
13
        private readonly string $string,
14
        private readonly int $int,
15
        private readonly float $float,
16
        private readonly array $array,
17
    ) {
18
    }
19
20
    public function getTypes(): array
21
    {
22
        return [
23
            'bool' => $this->bool,
24
            'string' => $this->string,
25
            'int' => $this->int,
26
            'float' => $this->float,
27
            'array' => $this->array,
28
        ];
29
    }
30
}
31