1 | <?php |
||
15 | final class TestPerson implements AssemblableInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $name; |
||
21 | /** |
||
22 | * @var TestCar |
||
23 | */ |
||
24 | private $car; |
||
25 | /** |
||
26 | * @var TestPhone |
||
27 | */ |
||
28 | private $phone; |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $birthplace; |
||
33 | /** |
||
34 | * @var TestAddress |
||
35 | */ |
||
36 | private $address; |
||
37 | /** |
||
38 | * @var DateTime |
||
39 | */ |
||
40 | private $birthday; |
||
41 | /** |
||
42 | * @var TestHobby |
||
43 | */ |
||
44 | public $hobby; |
||
45 | |||
46 | /** |
||
47 | * @param string $name |
||
48 | */ |
||
49 | public function setName(string $name) |
||
53 | |||
54 | /** |
||
55 | * @param TestCar $car |
||
56 | */ |
||
57 | public function setTestCar(TestCar $car) |
||
61 | |||
62 | /** |
||
63 | * @param TestPhone $phone |
||
64 | */ |
||
65 | public function setTestPhone(TestPhone $phone) |
||
69 | |||
70 | /** |
||
71 | * @param string $birthplace |
||
72 | */ |
||
73 | public function setBirthPlace(string $birthplace) |
||
77 | |||
78 | /** |
||
79 | * @param TestAddress $address |
||
80 | */ |
||
81 | public function setTestAddress(TestAddress $address) |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getName(): string |
||
93 | |||
94 | /** |
||
95 | * @return TestCar |
||
96 | */ |
||
97 | public function getCar(): TestCar |
||
101 | |||
102 | /** |
||
103 | * @return TestPhone |
||
104 | */ |
||
105 | public function getPhone(): TestPhone |
||
109 | |||
110 | /** |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getBirthPlace(): string |
||
117 | |||
118 | /** |
||
119 | * @return TestAddress |
||
120 | */ |
||
121 | public function getAddress(): TestAddress |
||
125 | |||
126 | /** |
||
127 | * @return DateTime |
||
128 | */ |
||
129 | public function getBirthday(): DateTime |
||
133 | |||
134 | /** |
||
135 | * @param string $birthday |
||
136 | */ |
||
137 | public function setBirthday(string $birthday) |
||
141 | |||
142 | /** |
||
143 | * @return XmlElement |
||
144 | */ |
||
145 | public function assemble(): XmlElement |
||
156 | } |