| 1 | <?php |
||
| 16 | class AliasGroupSerializer implements Serializer { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param AliasGroup $object |
||
| 20 | * |
||
| 21 | * @return array[] |
||
| 22 | */ |
||
| 23 | 10 | public function serialize( $object ) { |
|
| 27 | |||
| 28 | 10 | private function assertIsSerializerFor( $object ) { |
|
| 29 | 10 | if ( !( $object instanceof AliasGroup ) ) { |
|
| 30 | 3 | throw new UnsupportedObjectException( |
|
| 31 | $object, |
||
| 32 | 3 | 'AliasGroupSerializer can only serialize AliasGroup objects' |
|
| 33 | ); |
||
| 34 | } |
||
| 35 | 7 | } |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @param AliasGroup $aliasGroup |
||
| 39 | * |
||
| 40 | * @return array[] |
||
| 41 | */ |
||
| 42 | 7 | private function getSerialized( AliasGroup $aliasGroup ) { |
|
| 62 | |||
| 63 | } |
||
| 64 |