| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class ReverseLabel implements LabelGenerator |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var LabelGenerator |
||
| 22 | */ |
||
| 23 | private $labelGenerator; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * New instance. |
||
| 27 | */ |
||
| 28 | 12 | public function __construct(LabelGenerator $labelGenerator) |
|
| 29 | { |
||
| 30 | 12 | $this->labelGenerator = $labelGenerator; |
|
| 31 | 12 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 9 | public function generate(int $nbLabels): \Iterator |
|
| 43 | } |
||
| 44 | 9 | } |
|
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | 3 | public function format(string $label): string |
|
| 52 | } |
||
| 53 | } |
||
| 54 |