| 1 | <?php |
||
| 17 | class ReferenceListSerializer implements DispatchableSerializer { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var Serializer |
||
| 21 | */ |
||
| 22 | private $referenceSerializer; |
||
| 23 | |||
| 24 | 37 | public function __construct( Serializer $referenceSerializer ) { |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @see Serializer::isSerializerFor |
||
| 30 | * |
||
| 31 | * @param mixed $object |
||
| 32 | * |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | 15 | public function isSerializerFor( $object ) { |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @see Serializer::serialize |
||
| 41 | * |
||
| 42 | * @param ReferenceList $object |
||
| 43 | * |
||
| 44 | * @throws SerializationException |
||
| 45 | * @return array[] |
||
| 46 | */ |
||
| 47 | 10 | public function serialize( $object ) { |
|
| 57 | |||
| 58 | 7 | private function getSerialized( ReferenceList $references ) { |
|
| 67 | |||
| 68 | } |
||
| 69 |