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
|
|
|
* |
15
|
|
|
* @author Vasil Dakov <[email protected]> |
16
|
|
|
* @copyright 2009-2022 Neutrino.bg |
17
|
|
|
* |
18
|
|
|
* @version 1.0 |
19
|
|
|
* |
20
|
|
|
* @psalm-suppress MissingConstructor |
21
|
|
|
*/ |
22
|
|
|
class Client |
23
|
|
|
{ |
24
|
|
|
use ToArray; |
|
|
|
|
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @Serializer\Type("integer") |
28
|
|
|
*/ |
29
|
|
|
public ?int $clientId = null; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @Serializer\Type("string") |
33
|
|
|
*/ |
34
|
|
|
public ?string $clientName = null; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @Serializer\Type("string") |
38
|
|
|
*/ |
39
|
|
|
public ?string $objectName = null; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @Serializer\Type("string") |
43
|
|
|
*/ |
44
|
|
|
public ?string $contactName = null; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @Serializer\Type("VasilDakov\Speedy\Model\Address") |
48
|
|
|
*/ |
49
|
|
|
public ?Address $address = null; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @Serializer\Type("string") |
53
|
|
|
*/ |
54
|
|
|
public ?string $email = null; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @Serializer\Type("bool") |
58
|
|
|
*/ |
59
|
|
|
public ?bool $privatePerson = null; |
60
|
|
|
|
61
|
1 |
|
public function getClientId(): ?int |
62
|
|
|
{ |
63
|
1 |
|
return $this->clientId; |
64
|
|
|
} |
65
|
|
|
|
66
|
2 |
|
public function setClientId(?int $clientId): void |
67
|
|
|
{ |
68
|
2 |
|
$this->clientId = $clientId; |
69
|
|
|
} |
70
|
|
|
|
71
|
1 |
|
public function getClientName(): ?string |
72
|
|
|
{ |
73
|
1 |
|
return $this->clientName; |
74
|
|
|
} |
75
|
|
|
|
76
|
2 |
|
public function setClientName(?string $clientName): void |
77
|
|
|
{ |
78
|
2 |
|
$this->clientName = $clientName; |
79
|
|
|
} |
80
|
|
|
|
81
|
1 |
|
public function getObjectName(): ?string |
82
|
|
|
{ |
83
|
1 |
|
return $this->objectName; |
84
|
|
|
} |
85
|
|
|
|
86
|
2 |
|
public function setObjectName(?string $objectName): void |
87
|
|
|
{ |
88
|
2 |
|
$this->objectName = $objectName; |
89
|
|
|
} |
90
|
|
|
|
91
|
1 |
|
public function getContactName(): ?string |
92
|
|
|
{ |
93
|
1 |
|
return $this->contactName; |
94
|
|
|
} |
95
|
|
|
|
96
|
2 |
|
public function setContactName(?string $contactName): void |
97
|
|
|
{ |
98
|
2 |
|
$this->contactName = $contactName; |
99
|
|
|
} |
100
|
|
|
|
101
|
1 |
|
public function getAddress(): ?Address |
102
|
|
|
{ |
103
|
1 |
|
return $this->address; |
104
|
|
|
} |
105
|
|
|
|
106
|
2 |
|
public function setAddress(?Address $address): void |
107
|
|
|
{ |
108
|
2 |
|
$this->address = $address; |
109
|
|
|
} |
110
|
|
|
|
111
|
1 |
|
public function getEmail(): ?string |
112
|
|
|
{ |
113
|
1 |
|
return $this->email; |
114
|
|
|
} |
115
|
|
|
|
116
|
2 |
|
public function setEmail(?string $email): void |
117
|
|
|
{ |
118
|
2 |
|
$this->email = $email; |
119
|
|
|
} |
120
|
|
|
|
121
|
1 |
|
public function isPrivatePerson(): ?bool |
122
|
|
|
{ |
123
|
1 |
|
return $this->privatePerson; |
124
|
|
|
} |
125
|
|
|
|
126
|
2 |
|
public function setPrivatePerson(?bool $privatePerson): void |
127
|
|
|
{ |
128
|
2 |
|
$this->privatePerson = $privatePerson; |
129
|
|
|
} |
130
|
|
|
} |
131
|
|
|
|