1 | <?php |
||
7 | class TwitterVariantMedia implements TwitterSerializable |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $contentType; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $url; |
||
18 | |||
19 | /** |
||
20 | * @var int |
||
21 | */ |
||
22 | private $bitrate; |
||
23 | |||
24 | /** |
||
25 | * Constructor. |
||
26 | */ |
||
27 | 9 | public function __construct() |
|
30 | |||
31 | /** |
||
32 | * @return int |
||
33 | */ |
||
34 | 9 | public function getBitrate() |
|
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | 9 | public function getContentType() |
|
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | 9 | public function getUrl() |
|
54 | |||
55 | /** |
||
56 | * Static constructor. |
||
57 | * |
||
58 | * @param string $contentType |
||
59 | * @param string $url |
||
60 | * @param int $bitrate |
||
61 | * |
||
62 | * @return TwitterVariantMedia |
||
63 | */ |
||
64 | 9 | public static function create($contentType, $url, $bitrate) |
|
74 | } |
||
75 |