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;
    }