1 | <?php |
||
19 | class ReferenceSerializer implements DispatchableSerializer { |
||
20 | |||
21 | /** |
||
22 | * @var Serializer |
||
23 | */ |
||
24 | private $snaksSerializer; |
||
25 | |||
26 | 41 | public function __construct( Serializer $snaksSerializer ) { |
|
29 | |||
30 | /** |
||
31 | * @see Serializer::isSerializerFor |
||
32 | * |
||
33 | * @param mixed $object |
||
34 | * |
||
35 | * @return bool |
||
36 | */ |
||
37 | 16 | public function isSerializerFor( $object ) { |
|
40 | |||
41 | /** |
||
42 | * @see Serializer::serialize |
||
43 | * |
||
44 | * @param Reference $object |
||
45 | * |
||
46 | * @throws SerializationException |
||
47 | * @return array |
||
48 | */ |
||
49 | 11 | public function serialize( $object ) { |
|
59 | |||
60 | 8 | private function getSerialized( Reference $reference ) { |
|
67 | |||
68 | 8 | private function buildSnakListOrderList( SnakList $snaks ) { |
|
83 | |||
84 | } |
||
85 |