| 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 |
||
| 38 | 4 | public function deserialize( $serialization ) { |
|
| 39 | 4 | if ( !$this->isDeserializerFor( $serialization ) ) { |
|
| 40 | 2 | throw new DeserializationException( 'SerializedEntityDeserializer serialization should be an array' ); |
|
| 41 | } |
||
| 42 | |||
| 43 | 2 | return new SerializedEntity( |
|
| 44 | 2 | $this->getIdFromSerialization( $serialization ), |
|
| 45 | $serialization |
||
| 46 | 2 | ); |
|
| 47 | } |
||
| 48 | |||
| 57 |