<?php

namespace sent\jwt\parser;

use sent\jwt\contract\Parser as ParserContract;
use think\Request;

class Cookie implements ParserContract {
	use KeyTrait;

	public function parse(Request $request) {
		return \think\facade\Cookie::get($this->key);
	}
}
