Passed
Pull Request — master (#55)
by Jesús
03:20
created

CustomResolvedClass   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTypes() 0 8 1
A __construct() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Integration\Framework\UsingConfigInterfacesMapping\LocalConfig\Infrastructure;
6
7
use GacelaTest\Integration\Framework\UsingConfigInterfacesMapping\LocalConfig\Domain\ResolvedClassInterface;
8
9
final class CustomResolvedClass extends ResolvedClassInterface
10
{
11
    private bool $bool;
12
    private string $string;
13
    private int $int;
14
    private float $float;
15
    private array $array;
16
17
    public function __construct(bool $bool, string $string, int $int, float $float, array $array)
18
    {
19
        $this->bool = $bool;
20
        $this->string = $string;
21
        $this->int = $int;
22
        $this->float = $float;
23
        $this->array = $array;
24
    }
25
26
    public function getTypes(): array
27
    {
28
        return [
29
            'bool' => $this->bool,
30
            'string' => $this->string,
31
            'int' => $this->int,
32
            'float' => $this->float,
33
            'array' => $this->array,
34
        ];
35
    }
36
}
37