Passed
Push — main ( bcc232...2bc5a4 )
by Vasil
03:27
created

Client::setObjectName()   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 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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 Client
12
 *
13
 * @Serializer\AccessType("public_method")
14
 * @author Vasil Dakov <[email protected]>
15
 * @copyright 2009-2022 Neutrino.bg
16
 * @version 1.0
17
 * @psalm-suppress MissingConstructor
18
 */
19
class Client
20
{
21
    use ToArray;
22
23
    /**
24
     * @var int|null
25
     * @Serializer\Type("integer")
26
     */
27
    public ?int $clientId = null;
28
29
    /**
30
     * @var string|null
31
     * @Serializer\Type("string")
32
     */
33
    public ?string $clientName = null;
34
35
    /**
36
     * @var string|null
37
     * @Serializer\Type("string")
38
     */
39
    public ?string $objectName = null;
40
41
    /**
42
     * @var string|null
43
     * @Serializer\Type("string")
44
     */
45
    public ?string $contactName = null;
46
47
    /**
48
     * @var Address|null
49
     * @Serializer\Type("VasilDakov\Speedy\Model\Address")
50
     */
51
    public ?Address $address = null;
52
53
    /**
54
     * @var string|null
55
     * @Serializer\Type("string")
56
     */
57
    public ?string $email = null;
58
59
    /**
60
     * @var bool|null
61
     * @Serializer\Type("bool")
62
     */
63
    public ?bool $privatePerson = null;
64
65
    /**
66
     * @return int|null
67
     */
68 1
    public function getClientId(): ?int
69
    {
70 1
        return $this->clientId;
71
    }
72
73
    /**
74
     * @param int|null $clientId
75
     */
76 2
    public function setClientId(?int $clientId): void
77
    {
78 2
        $this->clientId = $clientId;
79
    }
80
81
    /**
82
     * @return string|null
83
     */
84 1
    public function getClientName(): ?string
85
    {
86 1
        return $this->clientName;
87
    }
88
89
    /**
90
     * @param string|null $clientName
91
     */
92 2
    public function setClientName(?string $clientName): void
93
    {
94 2
        $this->clientName = $clientName;
95
    }
96
97
    /**
98
     * @return string|null
99
     */
100 1
    public function getObjectName(): ?string
101
    {
102 1
        return $this->objectName;
103
    }
104
105
    /**
106
     * @param string|null $objectName
107
     */
108 2
    public function setObjectName(?string $objectName): void
109
    {
110 2
        $this->objectName = $objectName;
111
    }
112
113
    /**
114
     * @return string|null
115
     */
116 1
    public function getContactName(): ?string
117
    {
118 1
        return $this->contactName;
119
    }
120
121
    /**
122
     * @param string|null $contactName
123
     */
124 2
    public function setContactName(?string $contactName): void
125
    {
126 2
        $this->contactName = $contactName;
127
    }
128
129
    /**
130
     * @return Address|null
131
     */
132 1
    public function getAddress(): ?Address
133
    {
134 1
        return $this->address;
135
    }
136
137
    /**
138
     * @param Address|null $address
139
     */
140 2
    public function setAddress(?Address $address): void
141
    {
142 2
        $this->address = $address;
143
    }
144
145
    /**
146
     * @return string|null
147
     */
148 1
    public function getEmail(): ?string
149
    {
150 1
        return $this->email;
151
    }
152
153
    /**
154
     * @param string|null $email
155
     */
156 2
    public function setEmail(?string $email): void
157
    {
158 2
        $this->email = $email;
159
    }
160
161
    /**
162
     * @return bool|null
163
     */
164 1
    public function isPrivatePerson(): ?bool
165
    {
166 1
        return $this->privatePerson;
167
    }
168
169
    /**
170
     * @param bool|null $privatePerson
171
     */
172 2
    public function setPrivatePerson(?bool $privatePerson): void
173
    {
174 2
        $this->privatePerson = $privatePerson;
175
    }
176
177
    public function getSiteName()
178
    {
179
        return $this->siteName;
0 ignored issues
show
Bug Best Practice introduced by
The property siteName does not exist on VasilDakov\Speedy\Model\Client. Did you maybe forget to declare it?
Loading history...
180
    }
181
}
182