public function setData($data)
    {
        $this->data = ['operator' => $this->getDefaultOperator(), 'from' => static::DEFAULT_VALUE, 'to' => static::DEFAULT_VALUE];

        $hasValue = false;
        if (isset($data['from']) && $this->isQueryValid($data['from'])) {
            $this->data['from'] = $data['from'];
            $hasValue = true;
        }

        if (isset($data['to']) && $this->isQueryValid($data['to'])) {
            $this->data['to'] = $data['to'];
            $hasValue = true;
        }

        $isNullOperator = (isset($data['operator']) && ($data['operator'] === self::OPERATOR_ISNULL || $data['operator'] === self::OPERATOR_ISNOTNULL));
        if (($hasValue || $isNullOperator) && isset($data['operator']) && $this->hasOperator($data['operator'])) {
            $this->data['operator'] = $data['operator'];
        }

        return $this;
    }
public function setData($data)
    {
        $this->data = ['operator' => $this->getDefaultOperator(), 'from' => static::DEFAULT_VALUE, 'to' => static::DEFAULT_VALUE];

        $hasValue = false;
        if (isset($data['from']) && $this->isQueryValid($data['from'])) {
            $this->data['from'] = $data['from'];
            $hasValue = true;
        }

        if (isset($data['to']) && $this->isQueryValid($data['to'])) {
            $this->data['to'] = $data['to'];
            $hasValue = true;
        }

        $isNullOperator = (isset($data['operator']) && ($data['operator'] === self::OPERATOR_ISNULL || $data['operator'] === self::OPERATOR_ISNOTNULL));
        if (($hasValue || $isNullOperator) && isset($data['operator']) && $this->hasOperator($data['operator'])) {
            $this->data['operator'] = $data['operator'];
        }

        return $this;
    }
public function setData ( $ data ) { $ this -> data = [ 'operator' => $ this -> getDefaultOperator ( ) , 'from' => static :: DEFAULT_VALUE , 'to' => static :: DEFAULT_VALUE ] ; $ hasValue = false ; if ( isset ( $ data [ 'from' ] ) && $ this -> isQueryValid ( $ data [ 'from' ] ) ) { $ this -> data [ 'from' ] = $ data [ 'from' ] ; $ hasValue = true ; } if ( isset ( $ data [ 'to' ] ) && $ this -> isQueryValid ( $ data [ 'to' ] ) ) { $ this -> data [ 'to' ] = $ data [ 'to' ] ; $ hasValue = true ; } $ isNullOperator = ( isset ( $ data [ 'operator' ] ) && ( $ data [ 'operator' ] === self :: OPERATOR_ISNULL || $ data [ 'operator' ] === self :: OPERATOR_ISNOTNULL ) ) ; if ( ( $ hasValue || $ isNullOperator ) && isset ( $ data [ 'operator' ] ) && $ this -> hasOperator ( $ data [ 'operator' ] ) ) { $ this -> data [ 'operator' ] = $ data [ 'operator' ] ; } return $ this ; }
set filter data from session | request.

@param  $data

@return \APY\DataGridBundle\Grid\Column\Column
set filter data from session | request .