for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace GacelaTest\Benchmark\FileCache\ModuleB;
use Gacela\Framework\AbstractFactory;
use Gacela\Framework\DocBlockResolverAwareTrait;
use GacelaTest\Benchmark\FileCache\ModuleA\Infrastructure\EntityManager;
use GacelaTest\Benchmark\FileCache\ModuleB\Infrastructure\Repository;
use GacelaTest\Fixtures\StringValueInterface;
/**
* @method ConfigB getConfig()
* @method Repository getRepository()
* @method EntityManager getEntityManager()
*/
final class FactoryB extends AbstractFactory
{
use DocBlockResolverAwareTrait;
public function __construct(
private StringValueInterface $stringValue,
) {
}
public function getArrayConfigAndProvidedDependency(): array
return [
'config-key' => $this->getConfig()->getConfigValue(),
'string-value' => $this->stringValue->value(),
'provided-dependency' => $this->getProvidedDependency('provided-dependency'),
'repository' => $this->getRepository()->getAll(),
'entity-manager' => $this->getEntityManager()->updateEntity(),
];