1 | <?php |
||
13 | class GetPattern implements GetPatternInterface |
||
14 | { |
||
15 | /** |
||
16 | * The cache instance |
||
17 | * |
||
18 | * @var \BrowscapPHP\Cache\BrowscapCacheInterface |
||
19 | */ |
||
20 | private $cache; |
||
21 | |||
22 | /** |
||
23 | * a logger instance |
||
24 | * |
||
25 | * @var \Psr\Log\LoggerInterface |
||
26 | */ |
||
27 | private $logger; |
||
28 | |||
29 | /** |
||
30 | * class contructor |
||
31 | * |
||
32 | * @param \BrowscapPHP\Cache\BrowscapCacheInterface $cache |
||
33 | * @param \Psr\Log\LoggerInterface $logger |
||
34 | */ |
||
35 | 1 | public function __construct(BrowscapCacheInterface $cache, LoggerInterface $logger) |
|
40 | |||
41 | /** |
||
42 | * Gets some possible patterns that have to be matched against the user agent. With the given |
||
43 | * user agent string, we can optimize the search for potential patterns: |
||
44 | * - We check the first characters of the user agent (or better: a hash, generated from it) |
||
45 | * - We compare the length of the pattern with the length of the user agent |
||
46 | * (the pattern cannot be longer than the user agent!) |
||
47 | * |
||
48 | * @param string $userAgent |
||
49 | * |
||
50 | * @return \Generator |
||
51 | */ |
||
52 | public function getPatterns(string $userAgent) : \Generator |
||
118 | } |
||
119 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.