public function equals(RelationToFetch $other) { return $this->relation === $other->relation && $this->field === $other->field && $this->destinationField === $other->destinationField; }