| 1 | <?php |
||
| 19 | class LocationObject extends EzPlatformObject |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var LocationMapper |
||
| 23 | */ |
||
| 24 | private $mapper; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * LocationObject constructor. |
||
| 28 | * |
||
| 29 | * @param array|Location $data |
||
| 30 | * @param array $properties |
||
| 31 | */ |
||
| 32 | 16 | public function __construct($data, array $properties = []) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * Allows direct control in LocationCreateStruct and LocationUpdateStruct. |
||
| 43 | * |
||
| 44 | * @param \Closure $callback |
||
| 45 | */ |
||
| 46 | 2 | public function setStructCallback(\Closure $callback) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return LocationMapper |
||
| 53 | */ |
||
| 54 | 15 | public function getMapper() |
|
| 62 | } |
||
| 63 |