Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function isSameValueAs(ValueObjectInterface $object)
 {
     if (!$object instanceof Direction) {
         return false;
     }
     return $this->isUp() == $object->isUp();
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function isSameValueAs(ValueObjectInterface $id)
 {
     if (!$id instanceof DeltaId) {
         return false;
     }
     return $this->toString() === $id->toString();
 }