| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 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 | public function __construct(LabelGenerator $labelGenerator) |
||
| 29 | { |
||
| 30 | $this->labelGenerator = $labelGenerator; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function generate(int $nbLabels): \Iterator |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | public function format(string $label): string |
||
| 52 | } |
||
| 53 | } |
||
| 54 |