protected function _addState($state)
    {
        if (!is_string($state) && !($state instanceof Stringable)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Argument is not a valid state.'),
                null,
                null,
                $state
            );
        }

        $this->states[(string) $state] = $state;
    }
protected function _addState($state)
    {
        if (!is_string($state) && !($state instanceof Stringable)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Argument is not a valid state.'),
                null,
                null,
                $state
            );
        }

        $this->states[(string) $state] = $state;
    }
protected function _addState ( $ state ) { if ( ! is_string ( $ state ) && ! ( $ state instanceof Stringable ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Argument is not a valid state.' ) , null , null , $ state ) ; } $ this -> states [ ( string ) $ state ] = $ state ; }
Adds a state to this instance.

@since [*next-version*]

@param string|Stringable $state The state to add.
Adds a state to this instance .