Esempio n. 1
0
 /**
  * @param SimpleValueObject $object
  *
  * @return bool
  */
 public function equals(SimpleValueObject $object)
 {
     return $this->value() === $object->value() && static::class === get_class($object);
 }
Esempio n. 2
0
 /**
  * @param mixed $value
  */
 public function __construct($value)
 {
     $this->guardAgainstValueNotInValidConstants($value);
     parent::__construct($value);
 }
Esempio n. 3
0
 public function equals(SimpleValueObject $object)
 {
     return $this->value() === $object->value();
 }