1 | <?php |
||
14 | final class TestPerson implements AssemblableInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $name; |
||
20 | /** |
||
21 | * @var TestCar |
||
22 | */ |
||
23 | private $car; |
||
24 | /** |
||
25 | * @var TestPhone |
||
26 | */ |
||
27 | private $phone; |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $birthplace; |
||
32 | /** |
||
33 | * @var TestAddress |
||
34 | */ |
||
35 | private $address; |
||
36 | |||
37 | /** |
||
38 | * @param string $name |
||
39 | */ |
||
40 | public function setName(string $name) |
||
44 | |||
45 | /** |
||
46 | * @param TestCar $car |
||
47 | */ |
||
48 | public function setTestCar(TestCar $car) |
||
52 | |||
53 | /** |
||
54 | * @param TestPhone $phone |
||
55 | */ |
||
56 | public function setTestPhone(TestPhone $phone) |
||
60 | |||
61 | /** |
||
62 | * @param string $birthplace |
||
63 | */ |
||
64 | public function setBirthPlace(string $birthplace) |
||
68 | |||
69 | /** |
||
70 | * @param TestAddress $address |
||
71 | */ |
||
72 | public function setTestAddress(TestAddress $address) |
||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | public function getName(): string |
||
84 | |||
85 | /** |
||
86 | * @return TestCar |
||
87 | */ |
||
88 | public function getCar(): TestCar |
||
92 | |||
93 | /** |
||
94 | * @return TestPhone |
||
95 | */ |
||
96 | public function getPhone(): TestPhone |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | */ |
||
104 | public function getBirthPlace(): string |
||
108 | |||
109 | /** |
||
110 | * @return TestAddress |
||
111 | */ |
||
112 | public function getAddress(): TestAddress |
||
116 | |||
117 | /** |
||
118 | * @return XmlElement |
||
119 | */ |
||
120 | public function assemble(): XmlElement |
||
131 | } |