Office   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 61 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 2
    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
        #[Serializer\Type('string')]
40
        public ?string $info = null,
41
42
        #[Serializer\Type('string')]
43
        public ?string $currency = null,
44
45
        #[Serializer\Type('string')]
46
        public ?string $language = null,
47
48
        #[Serializer\Type('int')]
49
        public ?int $normalBusinessHoursFrom = null,
50
51
        #[Serializer\Type('int')]
52
        public ?int $normalBusinessHoursTo = null,
53
54
        #[Serializer\Type('array')]
55
        public ?array $shipmentTypes = null,
56
57
        #[Serializer\Type('string')]
58
        public ?string $partnerCode = null,
59
60
        #[Serializer\Type('string')]
61
        public ?string $hubCode = null,
62
63
        #[Serializer\Type('string')]
64
        public ?string $hubName = null,
65
66
        #[Serializer\Type('string')]
67
        public ?string $hubNameEn = null,
68
69
        #[Serializer\Type('bool')]
70
        public ?bool $isDrive = null,
71
    ){
72 2
    }
73
}
74