1 | <?php |
||
51 | trait SystemPropertiesTrait |
||
52 | { |
||
53 | /** |
||
54 | * System properties |
||
55 | * |
||
56 | * @var SystemProperties |
||
57 | */ |
||
58 | protected $systemProperties; |
||
59 | |||
60 | /** |
||
61 | * Return the object revision |
||
62 | * |
||
63 | * @return Revision Object revision |
||
64 | */ |
||
65 | 24 | public function getRevision() |
|
69 | |||
70 | /** |
||
71 | * Return the object ID |
||
72 | * |
||
73 | * @return Id Object ID |
||
74 | */ |
||
75 | 5 | public function getId() |
|
79 | |||
80 | /** |
||
81 | * Return the object type |
||
82 | * |
||
83 | * @return Type Object type |
||
84 | */ |
||
85 | 1 | public function getType() |
|
89 | |||
90 | /** |
||
91 | * Return the creation date & time |
||
92 | * |
||
93 | * @return \DateTimeImmutable Creation date & time |
||
94 | */ |
||
95 | 1 | public function getCreated() |
|
99 | |||
100 | /** |
||
101 | * Return the publication date & time |
||
102 | * |
||
103 | * @return \DateTimeImmutable|null Publication date & time |
||
104 | */ |
||
105 | 1 | public function getPublished() |
|
109 | |||
110 | /** |
||
111 | * Return the latitude |
||
112 | * |
||
113 | * @return float Latitude |
||
114 | */ |
||
115 | 1 | public function getLatitude() |
|
119 | |||
120 | /** |
||
121 | * Set the latitude |
||
122 | * |
||
123 | * @param float $latitude Latitude |
||
124 | * @return SystemProperties Self reference |
||
125 | */ |
||
126 | 1 | public function setLatitude($latitude) |
|
131 | |||
132 | /** |
||
133 | * Set the system properties collection |
||
134 | * |
||
135 | * @param SystemProperties $systemProperties System property collection |
||
136 | * @param bool $overwrite Overwrite the existing collection (if present) |
||
137 | */ |
||
138 | 1 | protected function setSystemProperties(SystemProperties $systemProperties, $overwrite = false) |
|
154 | |||
155 | /** |
||
156 | * Return the longitude |
||
157 | * |
||
158 | * @return float Longitude |
||
159 | */ |
||
160 | 1 | public function getLongitude() |
|
164 | |||
165 | /** |
||
166 | * Set the longitude |
||
167 | * |
||
168 | * @param float $longitude Longitude |
||
169 | * @return SystemProperties Self reference |
||
170 | */ |
||
171 | 1 | public function setLongitude($longitude) |
|
176 | |||
177 | /** |
||
178 | * Return the elevation |
||
179 | * |
||
180 | * @return float Elevation |
||
181 | */ |
||
182 | 1 | public function getElevation() |
|
186 | |||
187 | /** |
||
188 | * Set the elevation |
||
189 | * |
||
190 | * @param float $elevation |
||
191 | * @return SystemProperties Self reference |
||
192 | */ |
||
193 | 1 | public function setElevation($elevation) |
|
198 | |||
199 | /** |
||
200 | * Set the object state to dirty |
||
201 | */ |
||
202 | abstract protected function setDirtyState(); |
||
203 | } |
||
204 |