/** * @param RouteSpecification $other * @return bool */ public function sameValueAs(RouteSpecification $other) { if ($this->origin() !== $other->origin()) { return false; } if ($this->destination() !== $other->destination()) { return false; } return true; }