Total Complexity | 3 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Search { |
||
10 | |||
11 | /** @var string */ |
||
12 | protected $lang; |
||
13 | |||
14 | /** @var CacheItemPoolInterface */ |
||
15 | protected $cache; |
||
16 | |||
17 | /** |
||
18 | * Search constructor. |
||
19 | * @param string $searchTerm What to search for. |
||
20 | * @param string $lang Language to use for the search results. |
||
21 | * @param CacheItemPoolInterface $cache The cache to use. |
||
22 | */ |
||
23 | public function __construct( $searchTerm, $lang, CacheItemPoolInterface $cache ) { |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param string $limit The number of search results to return. |
||
31 | * @return Item[] |
||
32 | */ |
||
33 | public function getItems( $limit = 'max' ) { |
||
52 |