Total Complexity | 16 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 79.41% |
Changes | 0 |
1 | <?php |
||
12 | trait EventSerialization { |
||
13 | |||
14 | /** |
||
15 | * Serializes event object for database storage |
||
16 | * @return string |
||
17 | */ |
||
18 | 49 | public function serialize() { |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * Unserializes the event object stored in the database |
||
38 | * |
||
39 | * @param string $serialized Serialized string |
||
40 | * @return string |
||
41 | */ |
||
42 | 36 | public function unserialize($serialized) { |
|
72 |