forked from Sibyx/phpGPX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExtensions.php
More file actions
42 lines (37 loc) · 841 Bytes
/
Copy pathExtensions.php
File metadata and controls
42 lines (37 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Created 15/02/2017 19:00
* @author Jakub Dubec <jakub.dubec@gmail.com>
*/
namespace phpGPX\Models;
use phpGPX\Helpers\SerializationHelper;
use phpGPX\Models\Extensions\TrackPointExtension;
/**
* Class Extensions
* TODO: http://www.garmin.com/xmlschemas/GpxExtensions/v3
* @package phpGPX\Models
*/
class Extensions implements Summarizable
{
/**
* GPX Garmin TrackPointExtension v1
* @see 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1'
* @var TrackPointExtension
*/
public $trackPointExtension;
/**
* @var []
*/
public $unsupported = [];
/**
* Serialize object to array
* @return array
*/
public function toArray()
{
return [
'trackpoint' => SerializationHelper::serialize($this->trackPointExtension),
'unsupported' => $this->unsupported,
];
}
}