protected function _getState($key)
    {
        $sKey = (string) $key;

        return array_key_exists($sKey, $this->states)
            ? $this->states[$sKey]
            : null;
    }
protected function _getState($key)
    {
        $sKey = (string) $key;

        return array_key_exists($sKey, $this->states)
            ? $this->states[$sKey]
            : null;
    }
protected function _getState ( $ key ) { $ sKey = ( string ) $ key ; return array_key_exists ( $ sKey , $ this -> states ) ? $ this -> states [ $ sKey ] : null ; }
Retrieves the state with a specific key.

@since [*next-version*]

@param string|Stringable $key The state key.

@return string|Stringable|null The state, or null if no state for the given key was found.
Retrieves the state with a specific key .