public static function equalsPredicate(RelationToFetch $other) { return function (RelationToFetch $relationToFetch) use($other) { return $relationToFetch->equals($other); }; }
private function isAlreadyAddedToFetch(RelationToFetch $relationToFetch) { return Arrays::any($this->_relationsToFetch, RelationToFetch::equalsPredicate($relationToFetch)); }