public function filterUniverseByTypes(array $values): self
    {
        $fieldPath = Item::getPathByField('type');
        if (!empty($values)) {
            $this->universeFilters['type'] = Filter::create(
                $fieldPath,
                $values,
                Filter::AT_LEAST_ONE,
                Filter::TYPE_FIELD
            );
        } else {
            unset($this->universeFilters['type']);
        }

        return $this;
    }
public function filterUniverseByTypes(array $values): self
    {
        $fieldPath = Item::getPathByField('type');
        if (!empty($values)) {
            $this->universeFilters['type'] = Filter::create(
                $fieldPath,
                $values,
                Filter::AT_LEAST_ONE,
                Filter::TYPE_FIELD
            );
        } else {
            unset($this->universeFilters['type']);
        }

        return $this;
    }
public function filterUniverseByTypes ( array $ values ) : self { $ fieldPath = Item :: getPathByField ( 'type' ) ; if ( ! empty ( $ values ) ) { $ this -> universeFilters [ 'type' ] = Filter :: create ( $ fieldPath , $ values , Filter :: AT_LEAST_ONE , Filter :: TYPE_FIELD ) ; } else { unset ( $ this -> universeFilters [ 'type' ] ) ; } return $ this ; }
Filter universe by types.

@param array $values

@return Query
Filter universe by types .