public function sameValueAs(ValueObjectInterface $other) { if (!$other instanceof RouteSpecification) { return false; } return EqualsBuilder::create()->append($this->origin(), $other->origin())->append($this->destination(), $other->destination())->equals(); }