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