| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | 10 | public function serialize( $object ) { |
|
| 48 | 10 | if ( !$this->isSerializerFor( $object ) ) { |
|
| 49 | 3 | throw new UnsupportedObjectException( |
|
| 50 | 3 | $object, |
|
| 51 | 3 | 'ReferenceListSerializer can only serialize ReferenceList objects' |
|
| 52 | ); |
||
| 53 | } |
||
| 54 | |||
| 55 | 7 | return $this->getSerialized( $object ); |
|
| 56 | } |
||
| 57 | |||
| 69 |