1 | <?php |
||
10 | class TwitterMediaSerializer implements TwitterSerializer |
||
11 | { |
||
12 | /** |
||
13 | * @var TwitterEntityIndicesSerializer |
||
14 | */ |
||
15 | private $entityIndicesSerializer; |
||
16 | |||
17 | /** |
||
18 | * @var TwitterMediaSizeSerializer |
||
19 | */ |
||
20 | private $mediaSizeSerializer; |
||
21 | |||
22 | /** |
||
23 | * Constructor |
||
24 | * |
||
25 | * @param TwitterEntityIndicesSerializer $entityIndicesSerializer |
||
26 | * @param TwitterMediaSizeSerializer $mediaSizeSerializer |
||
27 | 33 | */ |
|
28 | public function __construct( |
||
35 | |||
36 | /** |
||
37 | * @param TwitterSerializable $object |
||
38 | * @return \stdClass |
||
39 | 6 | */ |
|
40 | public function serialize(TwitterSerializable $object) |
||
62 | |||
63 | /** |
||
64 | * @param \stdClass $obj |
||
65 | * @param array $context |
||
66 | * @return TwitterMedia |
||
67 | */ |
||
68 | public function unserialize($obj, array $context = []) |
||
94 | 3 | ||
95 | 2 | /** |
|
96 | * @param TwitterSerializable $object |
||
97 | * @return boolean |
||
98 | */ |
||
99 | public function canSerialize(TwitterSerializable $object) |
||
103 | |||
104 | 6 | /** |
|
105 | * @param \stdClass $object |
||
106 | * @return boolean |
||
107 | */ |
||
108 | public function canUnserialize($object) |
||
112 | |||
113 | 6 | /** |
|
114 | * @return TwitterMediaSerializer |
||
115 | */ |
||
116 | public static function build() |
||
123 | } |
||
124 |