Пример #1
0
 /**
  * @param ValueObject $other
  *
  * @return bool
  */
 public final function sameValueAs(ValueObject $other)
 {
     if (!$other instanceof self) {
         return false;
     }
     return $this->toString() === $other->toString();
 }
 /**
  * @param ValueObject $other
  *
  * @return bool
  */
 public function sameValueAs(ValueObject $other)
 {
     return $other->toString() === $this->toString();
 }