Pop\Web\Cookie::__get PHP 메소드

__get() 공개 메소드

Get method to return the value of the $_COOKIE global variable.
public __get ( string $name ) : mixed
$name string
리턴 mixed
    public function __get($name)
    {
        $value = null;
        if (isset($_COOKIE[$name])) {
            $value = substr($_COOKIE[$name], 0, 1) == '{' ? json_decode($_COOKIE[$name]) : $_COOKIE[$name];
        }
        return $value;
    }