| Total Complexity | 11 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | final class Customizer |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var Iterable |
||
| 11 | */ |
||
| 12 | private $config; |
||
| 13 | |||
| 14 | 1 | public static function load(string $filename): self |
|
| 15 | { |
||
| 16 | 1 | return new self(new Config($filename)); |
|
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Customizer constructor. |
||
| 21 | * @param Iterable $config |
||
| 22 | */ |
||
| 23 | 6 | public function __construct(Iterable $config) |
|
| 26 | 6 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param Iterable $target |
||
| 30 | * @param Iterable $config |
||
| 31 | * @return Iterable |
||
| 32 | */ |
||
| 33 | 6 | private function customizeInternal(Iterable $target, Iterable $config): Iterable |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param Iterable $target |
||
| 52 | * @return Iterable |
||
| 53 | */ |
||
| 54 | 6 | public function customize(Iterable $target): Iterable |
|
| 59 |