Test Failed
Push — main ( 7b8973...13a4fc )
by Vasil
06:57 queued 03:30
created

Street::setActualType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VasilDakov\Speedy\Model;
6
7
use JMS\Serializer\Annotation as Serializer;
8
use VasilDakov\Speedy\Traits\ToArray;
9
10
/**
11
 * Class Street.
12
 *
13
 * @author Vasil Dakov <[email protected]>
14
 * @copyright 2009-2022 Neutrino.bg
15
 *
16
 * @version 1.0
17
 *
18
 * @psalm-suppress MissingConstructor
19
 *
20
 * @Serializer\AccessType("public_method")
21
 */
22
class Street
23
{
24
    use ToArray;
0 ignored issues
show
Bug introduced by
The trait VasilDakov\Speedy\Traits\ToArray requires the property $value which is not provided by VasilDakov\Speedy\Model\Street.
Loading history...
25
26
    /**
27
     * @Serializer\Type("integer")
28
     */
29
    private int $id;
30
31
    /**
32
     * @Serializer\Type("integer")
33
     */
34
    private int $siteId;
35
36
    /**
37
     * @Serializer\Type("string")
38
     */
39
    private string $type;
40
41
    /**
42
     * @Serializer\Type("string")
43
     */
44
    private string $typeEn;
45
46
    /**
47
     * @Serializer\Type("string")
48
     */
49
    private string $name;
50
51
    /**
52
     * @Serializer\Type("string")
53
     */
54
    private string $nameEn;
55
56
57
    public function getId(): int
58
    {
59
        return $this->id;
60
    }
61
62
    public function setId(int $id): void
63
    {
64
        $this->id = $id;
65
    }
66
67
    public function getSiteId(): int
68
    {
69
        return $this->siteId;
70
    }
71
72
    public function setSiteId(int $siteId): void
73
    {
74
        $this->siteId = $siteId;
75
    }
76
77
    public function getType(): string
78
    {
79
        return $this->type;
80
    }
81 1
82
    public function setType(string $type): void
83 1
    {
84
        $this->type = $type;
85
    }
86 2
87
    public function getTypeEn(): string
88 2
    {
89
        return $this->typeEn;
90
    }
91 1
92
    public function setTypeEn(string $typeEn): void
93 1
    {
94
        $this->typeEn = $typeEn;
95
    }
96 2
97
    public function getName(): string
98 2
    {
99
        return $this->name;
100
    }
101 1
102
    public function setName(string $name): void
103 1
    {
104
        $this->name = $name;
105
    }
106 2
107
    public function getNameEn(): string
108 2
    {
109
        return $this->nameEn;
110
    }
111 1
112
    public function setNameEn(string $nameEn): void
113 1
    {
114
        $this->nameEn = $nameEn;
115
    }
116
}
117