| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 3 | public function serialize( $object ) { |
|
| 26 | 3 | if ( !$this->isSerializerFor( $object ) ) { |
|
| 27 | 1 | throw new UnsupportedObjectException( |
|
| 28 | 1 | $object, |
|
| 29 | 'SerializedEntitySerializer can only serialize SerializedEntity objects' |
||
| 30 | 1 | ); |
|
| 31 | } |
||
| 32 | |||
| 33 | 2 | return $this->getSerialized( $object ); |
|
| 34 | } |
||
| 35 | |||
| 40 |