src/ArrayObject.php
public function filterConditions(
        array $conditions,
        string $matchType = CollectionUtility::MATCH_TYPE_LOOSE,
        $preserveKeys = false
    ): ArrayObjectInterface {
        return new static(CollectionUtility::filterWhere($this->isCollection() ? $this->data : [$this->data],
            $conditions, $matchType, $preserveKeys));
    }
public function filterConditions(
        array $conditions,
        string $matchType = CollectionUtility::MATCH_TYPE_LOOSE,
        $preserveKeys = false
    ): ArrayObjectInterface {
        return new static(CollectionUtility::filterWhere($this->isCollection() ? $this->data : [$this->data],
            $conditions, $matchType, $preserveKeys));
    }
public function filterConditions ( array $ conditions , string $ matchType = CollectionUtility :: MATCH_TYPE_LOOSE , $ preserveKeys = false ) : ArrayObjectInterface { return new static ( CollectionUtility :: filterWhere ( $ this -> isCollection ( ) ? $ this -> data : [ $ this -> data ] , $ conditions , $ matchType , $ preserveKeys ) ) ; }
Return a new collection by filtering the data against a list of conditions.

@param array  $conditions
@param string $matchType
@param bool   $preserveKeys

@return ArrayObjectInterface
Return a new collection by filtering the data against a list of conditions .