| 1 | <?php | ||
| 8 | final class EntityId implements Serializable | ||
| 9 | { | ||
| 10 | /** | ||
| 11 | * @var string | ||
| 12 | */ | ||
| 13 | private $entityId; | ||
| 14 | |||
| 15 | /** | ||
| 16 | * @param string $entityId | ||
| 17 | */ | ||
| 18 | public function __construct($entityId) | ||
| 24 | |||
| 25 | /** | ||
| 26 | * @param EntityId $other | ||
| 27 | * @return bool | ||
| 28 | */ | ||
| 29 | public function equals(EntityId $other) | ||
| 33 | |||
| 34 | /** | ||
| 35 | * @return string | ||
| 36 | */ | ||
| 37 | public function getEntityId() | ||
| 41 | |||
| 42 | public static function deserialize($data) | ||
| 46 | |||
| 47 | public function serialize() | ||
| 51 | |||
| 52 | public function __toString() | ||
| 56 | } | ||
| 57 |