Passed
Push — main ( a8b0f9...5ab65b )
by Vasil
03:25
created

Office   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 30
ccs 0
cts 1
cp 0
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 28 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Econt\Model;
6
7
use JMS\Serializer\Annotation as Serializer;
8
9
readonly class Office
10
{
11
    public function __construct(
12
        #[Serializer\Type('int')]
13
        public ?int $id = null,
14
15
        #[Serializer\Type('string')]
16
        public ?string $code = null,
17
18
        #[Serializer\Type('string')]
19
        public ?string $name = null,
20
21
        #[Serializer\Type('string')]
22
        public ?string $nameEn = null,
23
24
        #[Serializer\Type('bool')]
25
        public ?bool $isMPS = null,
26
27
        #[Serializer\Type('bool')]
28
        public ?bool $isAPS = null,
29
30
        #[Serializer\Type('array')]
31
        public ?array $phones = null,
32
33
        #[Serializer\Type('array')]
34
        public ?array $emails = null,
35
36
        #[Serializer\Type(Address::class)]
37
        public ?Address $address = null,
0 ignored issues
show
Bug introduced by
The type VasilDakov\Econt\Model\Address 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...
38
    ){
39
    }
40
}
41