/**
  * @test
  * @group metadata
  * @group entity
  */
 public function deserializing_a_serialized_entity_id_results_in_an_equal_value_object()
 {
     $original = new EntityId('OpenConext.org');
     $deserialized = EntityId::deserialize($original->serialize());
     $this->assertTrue($original->equals($deserialized));
 }
示例#2
0
 /**
  * @param Entity $other
  * @return bool
  */
 public function equals(Entity $other)
 {
     return $this->entityId->equals($other->entityId) && $this->entityType->equals($other->entityType);
 }