Test Failed
Push — feature/gacela-config-callable ( f0c396 )
by Chema
04:24
created

ConcreteClass   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getTypes() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Feature\Framework\UsingGacelaConfigFn\LocalConfig\Infrastructure;
6
7
use GacelaTest\Feature\Framework\UsingGacelaConfigFn\LocalConfig\Domain\AbstractClass;
8
9
final class ConcreteClass extends AbstractClass
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