| 1 | <?php |
||
| 16 | class SplitPointField extends PointField |
||
| 17 | { |
||
| 18 | |||
| 19 | protected $requiredFields = [ |
||
| 20 | 'latitudeColumn', |
||
| 21 | 'longitudeColumn' |
||
| 22 | ]; |
||
| 23 | |||
| 24 | protected $cast = 'array'; |
||
| 25 | |||
| 26 | protected $latitudeColumn = 'latitude'; |
||
| 27 | |||
| 28 | protected $longitudeColumn = 'longitude'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * among the other variables we need to have the column names for longitude and latitude added in here |
||
| 32 | * |
||
| 33 | * @param array $options |
||
| 34 | */ |
||
| 35 | 3 | public function __construct($options) |
|
| 42 | |||
| 43 | 2 | public function getLatitudeColumn() |
|
| 47 | |||
| 48 | 2 | public function getLongitudeColumn() |
|
| 52 | } |
||
| 53 |