| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Lister implements ListerInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ListManager |
||
| 15 | */ |
||
| 16 | private $listManager; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param ListManager $listManager |
||
| 20 | */ |
||
| 21 | 3 | public function __construct(ListManager $listManager) |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritDoc |
||
| 28 | */ |
||
| 29 | 1 | public function buildList(string $list, string $type, array $parameters = []): ListerInterface |
|
| 30 | { |
||
| 31 | 1 | $this->listManager->buildList($list, $type, $parameters); |
|
| 32 | |||
| 33 | 1 | return $this; |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritDoc |
||
| 38 | */ |
||
| 39 | 1 | public function generateResponse(array $options = []): Response |
|
| 40 | { |
||
| 41 | 1 | return $this->listManager->getResponse($options); |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritDoc |
||
| 46 | */ |
||
| 47 | 1 | public function generateData(array $options = []) |
|
| 50 | } |
||
| 51 | } |
||
| 52 |