| 1 | <?php |
||
| 6 | class MediaMetadata extends BaseModel |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * The GPS coordinate of the photo/video. |
||
| 11 | * |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | protected $location = array(); |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Dimension of the photo/video. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $dimensions = array(); |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The timestamp when the photo/video is taken. |
||
| 25 | * |
||
| 26 | * @var DateTime |
||
| 27 | */ |
||
| 28 | protected $time_taken; |
||
| 29 | |||
| 30 | |||
| 31 | /** |
||
| 32 | * Create a new MediaMetadata instance |
||
| 33 | * |
||
| 34 | * @param array $data |
||
| 35 | */ |
||
| 36 | public function __construct(array $data) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get the location of the Media |
||
| 50 | * |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | public function getLocation() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Get the dimensions of the Media |
||
| 60 | * |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | public function getDimensions() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Get the Time the Media was taken on |
||
| 70 | * |
||
| 71 | * @return DateTime |
||
| 72 | */ |
||
| 73 | public function getTimeTaken() |
||
| 77 | } |
||
| 78 |