for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace GacelaTest\Integration\Framework\UsingConfigInterfacesMapping\LocalConfig\Infrastructure;
use GacelaTest\Integration\Framework\UsingConfigInterfacesMapping\LocalConfig\Domain\GreeterGeneratorInterface;
final class CorrectCompanyGenerator implements GreeterGeneratorInterface
{
private CustomNameGenerator $nameGenerator;
public function __construct(CustomNameGenerator $nameGenerator)
$this->nameGenerator = $nameGenerator;
}
public function company(string $name): string
$names = $this->nameGenerator->getNames();
return "Hello {$name}! Name: {$names}";