1<?php
2namespace Kunnu\Dropbox\Models;
3
4class VideoMetadata extends MediaMetadata
5{
6
7    /**
8     * The duration of the video in milliseconds
9     *
10     * @var int
11     */
12    protected $duration;
13
14    /**
15     * Create a new VideoMetadata instance
16     *
17     * @param array $data
18     */
19    public function __construct(array $data)
20    {
21        parent::__construct($data);
22        $this->duration = $this->getDataProperty('duration');
23    }
24
25    /**
26     * Get the duration of the video
27     *
28     * @return int
29     */
30    public function getDuration()
31    {
32        return $this->duration;
33    }
34}
35