public function setAutoFilter($filteredColumnName, $filteredValue)
    {
        if (!is_string($filteredColumnName)) {
            throw new InvalidArgumentException('setAutoFilter only accepts string as argument.');
        }
        if (!isset($filteredColumnName)) {
            throw new InvalidArgumentException('filteredValue must be set.');
        }
        $this->filteredColumnName = $filteredColumnName;
        $this->filteredValue = $filteredValue;
        return $this;
    }
public function setAutoFilter($filteredColumnName, $filteredValue)
    {
        if (!is_string($filteredColumnName)) {
            throw new InvalidArgumentException('setAutoFilter only accepts string as argument.');
        }
        if (!isset($filteredColumnName)) {
            throw new InvalidArgumentException('filteredValue must be set.');
        }
        $this->filteredColumnName = $filteredColumnName;
        $this->filteredValue = $filteredValue;
        return $this;
    }
public function setAutoFilter ( $ filteredColumnName , $ filteredValue ) { if ( ! is_string ( $ filteredColumnName ) ) { throw new InvalidArgumentException ( 'setAutoFilter only accepts string as argument.' ) ; } if ( ! isset ( $ filteredColumnName ) ) { throw new InvalidArgumentException ( 'filteredValue must be set.' ) ; } $ this -> filteredColumnName = $ filteredColumnName ; $ this -> filteredValue = $ filteredValue ; return $ this ; }
Set the filtered column name

If this is set, only the entry that have the given $value in this column will be fetched.
Useful for implementing a soft-delete for instance.

@param string $filteredColumnName
@param $filteredValue
@return self
Set the filtered column name