| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class ArrayExporter implements Exporter |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * List of all plugins that where retrieved so far. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | private array $plugins = []; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @inheritDoc |
||
| 25 | */ |
||
| 26 | public function process(array $pluginBlock, int $currentPage, int $maxPages): void |
||
| 27 | { |
||
| 28 | $this->plugins = array_merge($this->plugins, $pluginBlock); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritDoc |
||
| 33 | */ |
||
| 34 | public function finish(): void |
||
| 36 | |||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Return all retrieved plugins in array structure. |
||
| 41 | * |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | public function getArray(): array |
||
| 49 |