1 | <?php |
||
9 | class CachedParser implements ParserInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var CacheInterface |
||
13 | */ |
||
14 | private $cache; |
||
15 | /** |
||
16 | * @var ParserInterface |
||
17 | */ |
||
18 | private $parser; |
||
19 | |||
20 | public function __construct(CacheInterface $cache, ParserInterface $parser) |
||
25 | |||
26 | public function parse(string $userAgent): UserAgent |
||
39 | } |
||
40 |