ConfigFilter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
c 1
b 0
f 0
dl 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Koriym\AppStateDiagram;
6
7
final class ConfigFilter
8
{
9
    /** @var list<string>  */
0 ignored issues
show
Bug introduced by
The type Koriym\AppStateDiagram\list was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
    public $and;
11
12
    /** @var list<string>  */
13
    public $or;
14
15
    /** @var string  */
16
    public $color;
17
18
    /**
19
     * @param list<string> $and
20
     * @param list<string> $or
21
     */
22
    public function __construct(array $and, array $or, string $color)
23
    {
24
        $this->and = $and;
0 ignored issues
show
Documentation Bug introduced by
It seems like $and of type array is incompatible with the declared type Koriym\AppStateDiagram\list of property $and.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
25
        $this->or = $or;
0 ignored issues
show
Documentation Bug introduced by
It seems like $or of type array is incompatible with the declared type Koriym\AppStateDiagram\list of property $or.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
26
        $this->color = $color;
27
    }
28
}
29