yii\web\CookieCollection::getValue PHP Метод

getValue() публичный Метод

Returns the value of the named cookie.
См. также: get()
public getValue ( string $name, mixed $defaultValue = null ) : mixed
$name string the cookie name
$defaultValue mixed the value that should be returned when the named cookie does not exist.
Результат mixed the value of the named cookie.
    public function getValue($name, $defaultValue = null)
    {
        return isset($this->_cookies[$name]) ? $this->_cookies[$name]->value : $defaultValue;
    }