1 | <?php |
||
9 | class Destination extends Entity |
||
10 | { |
||
11 | protected $address = []; |
||
12 | protected $location = []; |
||
13 | protected $notes; |
||
14 | protected $metadata = []; |
||
15 | protected $timeCreated; |
||
16 | protected $timeLastModified; |
||
17 | |||
18 | protected $endpoint = 'destinations'; |
||
19 | |||
20 | protected static $properties = [ |
||
21 | 'id', |
||
22 | 'address', |
||
23 | 'location', |
||
24 | 'notes', |
||
25 | 'metadata', |
||
26 | 'timeCreated', |
||
27 | 'timeLastModified', |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * @return array |
||
32 | */ |
||
33 | public function getAddress(): array |
||
37 | |||
38 | /** |
||
39 | * @param array $address |
||
40 | */ |
||
41 | public function setAddress(array $address) |
||
45 | |||
46 | /** |
||
47 | * @return array |
||
48 | */ |
||
49 | public function getLocation(): array |
||
53 | |||
54 | /** |
||
55 | * @param array $location |
||
56 | */ |
||
57 | public function setLocation(array $location) |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | public function getNotes(): string |
||
69 | |||
70 | /** |
||
71 | * @param string $notes |
||
72 | */ |
||
73 | public function setNotes($notes) |
||
77 | |||
78 | /** |
||
79 | * @return array |
||
80 | */ |
||
81 | public function getMetadata(): array |
||
85 | |||
86 | /** |
||
87 | * @return \DateTime |
||
88 | */ |
||
89 | public function getTimeCreated() |
||
93 | |||
94 | /** |
||
95 | * @return \DateTime |
||
96 | */ |
||
97 | public function getTimeLastModified() |
||
101 | |||
102 | /** |
||
103 | * @throws \BadMethodCallException |
||
104 | */ |
||
105 | public function update() |
||
109 | |||
110 | /** |
||
111 | * @throws \BadMethodCallException |
||
112 | */ |
||
113 | public function delete() |
||
117 | } |
||
118 |