Doctrine\MongoDB\Query\Query::getQueryOptions PHP Method

getQueryOptions() private method

Returns an array containing the specified keys and their values from the query array, provided they exist and are not null.
private getQueryOptions ( ) : array
return array
    private function getQueryOptions()
    {
        return array_filter(array_intersect_key($this->query, array_flip(func_get_args())), function ($value) {
            return $value !== null;
        });
    }