| Conditions | 3 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 3 | public function unserialize($serializedCommandData, $commandClass) |
|
| 29 | { |
||
| 30 | 3 | if (!is_object($serializedCommandData) || !$serializedCommandData instanceof $commandClass) { |
|
| 31 | 2 | throw new InvalidArgumentException("Null serializer accepts only commands as serialized command data."); |
|
| 32 | } |
||
| 33 | 1 | return $serializedCommandData; |
|
| 34 | } |
||
| 35 | |||
| 37 |