public final function getCookie(string $name, ?string $valueDefault = null): ?string
    {
        return $this->cookies[$name] ?? $valueDefault;
    }
public final function getCookie(string $name, ?string $valueDefault = null): ?string
    {
        return $this->cookies[$name] ?? $valueDefault;
    }
public final function getCookie ( string $ name , ? string $ valueDefault = null ) : ? string { return $ this -> cookies [ $ name ] ?? $ valueDefault ; }
Get cookie.
@param  string  $name
@param  ?string $valueDefault
@return ?string
Get cookie .