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