| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 21 | class Formatter implements FormatterInterface |
||
| 22 | { |
||
| 23 | /** @var callable */ |
||
| 24 | protected $callback; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Formatter constructor. |
||
| 28 | * |
||
| 29 | * @param callable $callback |
||
| 30 | */ |
||
| 31 | 9 | public function __construct(callable $callback) |
|
| 34 | 9 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param array $header an array of strings to be formatted |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | 6 | public function format(array $header): array |
|
| 53 |