1 | <?php |
||
10 | class TwitterSymbolSerializer implements TwitterSerializer |
||
11 | { |
||
12 | /** |
||
13 | * @var TwitterEntityIndicesSerializer |
||
14 | */ |
||
15 | private $entityIndicesSerializer; |
||
16 | |||
17 | /** |
||
18 | * Constructor |
||
19 | * |
||
20 | * @param TwitterEntityIndicesSerializer $entityIndicesSerializer |
||
21 | */ |
||
22 | 33 | public function __construct(TwitterEntityIndicesSerializer $entityIndicesSerializer) |
|
23 | { |
||
24 | 33 | $this->entityIndicesSerializer = $entityIndicesSerializer; |
|
25 | 33 | } |
|
26 | |||
27 | /** |
||
28 | * @param TwitterSerializable $object |
||
29 | * @return \stdClass |
||
30 | */ |
||
31 | 6 | public function serialize(TwitterSerializable $object) |
|
42 | |||
43 | /** |
||
44 | * @param \stdClass $obj |
||
45 | * @param array $context |
||
46 | * @return TwitterSymbol |
||
47 | */ |
||
48 | 6 | public function unserialize($obj, array $context = []) |
|
57 | |||
58 | /** |
||
59 | * @param TwitterSerializable $object |
||
60 | * @return boolean |
||
61 | */ |
||
62 | 6 | public function canSerialize(TwitterSerializable $object) |
|
66 | |||
67 | /** |
||
68 | * @param \stdClass $object |
||
69 | * @return boolean |
||
70 | */ |
||
71 | 6 | public function canUnserialize($object) |
|
75 | |||
76 | /** |
||
77 | * @return TwitterSymbolSerializer |
||
78 | */ |
||
79 | 21 | public static function build() |
|
85 | } |
||
86 |