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