public function getFilter(string $name) : BsonFilter
    {
        if (! $this->isEnabled($name)) {
            throw new InvalidArgumentException("Filter '" . $name . "' is not enabled.");
        }
        return $this->enabledFilters[$name];
    }
public function getFilter(string $name) : BsonFilter
    {
        if (! $this->isEnabled($name)) {
            throw new InvalidArgumentException("Filter '" . $name . "' is not enabled.");
        }
        return $this->enabledFilters[$name];
    }
public function getFilter ( string $ name ) : BsonFilter { if ( ! $ this -> isEnabled ( $ name ) ) { throw new InvalidArgumentException ( "Filter '" . $ name . "' is not enabled." ) ; } return $ this -> enabledFilters [ $ name ] ; }
Get an enabled filter from the collection.

@throws InvalidArgumentException If the filter is not enabled.
Get an enabled filter from the collection .