| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class CorrectCompanyGenerator implements GreeterGeneratorInterface |
||
| 10 | { |
||
| 11 | private CustomNameGenerator $nameGenerator; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param CustomNameGenerator $nameGenerator This will be automagically resolved. |
||
| 15 | * See gacela.php in this Feature test. |
||
| 16 | */ |
||
| 17 | public function __construct(CustomNameGenerator $nameGenerator) |
||
| 18 | { |
||
| 19 | $this->nameGenerator = $nameGenerator; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function company(string $name): string |
||
| 27 | } |
||
| 28 | } |
||
| 29 |