| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 15 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 48 | public function unserialize($serialized) | ||
| 49 |     { | ||
| 50 | $data = unserialize($serialized); | ||
| 51 | |||
| 52 |         if (!isset($data["name"])) { | ||
| 53 |             throw new InvalidArgumentException("malformed event"); | ||
| 54 | } | ||
| 55 | |||
| 56 |         if (!isset($data["parameters"])) { | ||
| 57 |             throw new InvalidArgumentException("malformed event"); | ||
| 58 | } | ||
| 59 | |||
| 60 | $this->name = $data["name"]; | ||
| 61 | $this->parameters = $data["parameters"]; | ||
| 62 | } | ||
| 63 | |||
| 84 |