| 1 | <?php  | 
            ||
| 9 | abstract class AbstractEvent implements SerializableInterface  | 
            ||
| 10 | { | 
            ||
| 11 | const UUID = 'uuid';  | 
            ||
| 12 | const NAME = 'name';  | 
            ||
| 13 | |||
| 14 | /**  | 
            ||
| 15 | * @var UUID  | 
            ||
| 16 | */  | 
            ||
| 17 | private $uuid;  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * @var LabelName  | 
            ||
| 21 | */  | 
            ||
| 22 | private $name;  | 
            ||
| 23 | |||
| 24 | /**  | 
            ||
| 25 | * AbstractEvent constructor.  | 
            ||
| 26 | * @param UUID $uuid  | 
            ||
| 27 | * @param LabelName $name  | 
            ||
| 28 | */  | 
            ||
| 29 | public function __construct(UUID $uuid, LabelName $name)  | 
            ||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * @return UUID  | 
            ||
| 37 | */  | 
            ||
| 38 | public function getUuid()  | 
            ||
| 42 | |||
| 43 | /**  | 
            ||
| 44 | * @return LabelName  | 
            ||
| 45 | */  | 
            ||
| 46 | public function getName()  | 
            ||
| 50 | |||
| 51 | /**  | 
            ||
| 52 | * @inheritdoc  | 
            ||
| 53 | */  | 
            ||
| 54 | public static function deserialize(array $data)  | 
            ||
| 61 | |||
| 62 | /**  | 
            ||
| 63 | * @inheritdoc  | 
            ||
| 64 | */  | 
            ||
| 65 | public function serialize()  | 
            ||
| 72 | }  | 
            ||
| 73 |