Prado\Security\TUser::getState PHP Метод

getState() защищенный Метод

This function is designed to be used by TUser descendant classes who want to store additional user information in user session. A variable, if stored in user session using {@link setState} can be retrieved back using this function.
См. также: setState
protected getState ( $key, $defaultValue = null ) : mixed
Результат mixed the value of the variable. If it doesn't exist, the provided default value will be returned
    protected function getState($key, $defaultValue = null)
    {
        return isset($this->_state[$key]) ? $this->_state[$key] : $defaultValue;
    }