original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Adds a state to this instance.
  
  @since [*next-version*]
  
  @param string|Stringable $state The state to add.
docstring_tokens: Adds a state to this instance .