Example #1
0
 /**
  * @inheritdoc
  */
 public function __construct($value)
 {
     $this->assertIsValidUri($value);
     parent::__construct($value);
 }
Example #2
0
 /**
  * @param Id $otherId
  * @return bool
  */
 public function matches(Id $otherId)
 {
     return $this->value === $otherId->getValue();
 }