| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class OptionMapper |
||
| 15 | { |
||
| 16 | /** @var array */ |
||
| 17 | private $map = []; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param array $map |
||
| 21 | */ |
||
| 22 | public function __construct(array $map) |
||
| 23 | { |
||
| 24 | $this->map = $map; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param iterable $options |
||
| 29 | * @return array |
||
| 30 | * |
||
| 31 | * @throws OptionException |
||
| 32 | */ |
||
| 33 | public function map(iterable $options): array |
||
| 45 | } |
||
| 46 | } |