src/Detail/Filtering/Zend/InputFilter/BaseFilter.php
public function setData($data)
    {
        // setData() expects array, but we can't prevent users from providing other types.
        // So instead of an exception we just want this input filter to be invalid...
        try {
            parent::setData($data);
            $this->invalidData = null;
            $this->invalidDataTypeException = null;
        } catch (InputFilterInvalidArgumentException $e) {
            $this->invalidData = $data;
            $this->invalidDataTypeException = $e;
        }

        return $this;
    }
public function setData($data)
    {
        // setData() expects array, but we can't prevent users from providing other types.
        // So instead of an exception we just want this input filter to be invalid...
        try {
            parent::setData($data);
            $this->invalidData = null;
            $this->invalidDataTypeException = null;
        } catch (InputFilterInvalidArgumentException $e) {
            $this->invalidData = $data;
            $this->invalidDataTypeException = $e;
        }

        return $this;
    }
public function setData ( $ data ) { // setData() expects array, but we can't prevent users from providing other types. // So instead of an exception we just want this input filter to be invalid... try { parent :: setData ( $ data ) ; $ this -> invalidData = null ; $ this -> invalidDataTypeException = null ; } catch ( InputFilterInvalidArgumentException $ e ) { $ this -> invalidData = $ data ; $ this -> invalidDataTypeException = $ e ; } return $ this ; }
Set data to use when validating and filtering

@param array|Traversable $data
@return BaseFilter
Set data to use when validating and filtering