public function setState($state = null)
        {
            if (null === $state) {
                $this->_state = $state;
                return $this;
            }

            if (in_array($state, array(static::STATE_SUCCESS, static::STATE_ERROR, static::STATE_INFO))) {
                $this->_state = $state;
            }

            return $this;
        }
public function setState($state = null)
        {
            if (null === $state) {
                $this->_state = $state;
                return $this;
            }

            if (in_array($state, array(static::STATE_SUCCESS, static::STATE_ERROR, static::STATE_INFO))) {
                $this->_state = $state;
            }

            return $this;
        }
public function setState ( $ state = null ) { if ( null === $ state ) { $ this -> _state = $ state ; return $ this ; } if ( in_array ( $ state , array ( static :: STATE_SUCCESS , static :: STATE_ERROR , static :: STATE_INFO ) ) ) { $ this -> _state = $ state ; } return $ this ; }
Sets the row state

@param string $state

@return Row
Sets the row state