1 | <?php |
||
17 | class Customer implements CustomerInterface |
||
18 | { |
||
19 | /** @var string */ |
||
20 | protected $registerName; |
||
21 | |||
22 | /** @var string */ |
||
23 | protected $socialName; |
||
24 | |||
25 | /** @var CustomerPhone */ |
||
26 | protected $phone; |
||
27 | |||
28 | /** @var CustomerAddress */ |
||
29 | protected $address; |
||
30 | |||
31 | /** @var string */ |
||
32 | protected $birthDate; |
||
33 | |||
34 | /** @var string */ |
||
35 | protected $motherName; |
||
36 | |||
37 | /** @var string */ |
||
38 | protected $email; |
||
39 | |||
40 | /** |
||
41 | * @param string $name |
||
42 | * @return Customer |
||
43 | */ |
||
44 | public function setRegisterName(string $name): Customer |
||
49 | |||
50 | /** |
||
51 | * @param string $name |
||
52 | * @return Customer |
||
53 | */ |
||
54 | public function setSocialName(string $name): Customer |
||
59 | |||
60 | public function setPhone(CustomerPhone $phone): Customer |
||
65 | |||
66 | public function setAddress(CustomerAddress $address): Customer |
||
71 | |||
72 | /** |
||
73 | * @param string $birthDate |
||
74 | * @return Customer |
||
75 | */ |
||
76 | public function setBirthDate(string $birthDate): Customer |
||
81 | |||
82 | /** |
||
83 | * @param string $motherName |
||
84 | * @return Customer |
||
85 | */ |
||
86 | public function setMotherName(string $motherName): Customer |
||
91 | |||
92 | /** |
||
93 | * @param string $email |
||
94 | * @return Customer |
||
95 | */ |
||
96 | public function setEmail(string $email): Customer |
||
101 | |||
102 | /** |
||
103 | * @return string |
||
104 | */ |
||
105 | public function getRegisterName(): string |
||
109 | |||
110 | /** |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getSocialName(): string |
||
117 | |||
118 | /** |
||
119 | * @return CustomerPhone |
||
120 | */ |
||
121 | public function getPhone(): CustomerPhone |
||
125 | |||
126 | /** |
||
127 | * @return CustomerAddress |
||
128 | */ |
||
129 | public function getAddress(): CustomerAddress |
||
133 | |||
134 | /** |
||
135 | * @return string |
||
136 | */ |
||
137 | public function getBirthDate(): string |
||
141 | |||
142 | public function getMotherName(): string |
||
146 | |||
147 | /** |
||
148 | * @return string |
||
149 | */ |
||
150 | public function getEmail(): string |
||
154 | |||
155 | /** |
||
156 | * @return array |
||
157 | */ |
||
158 | public function toArray(): array |
||
170 | } |
||
171 |