deblan.io-murph/core/Resources/maker/factory/Factory.tpl.php

15 lines
255 B
PHP
Raw Normal View History

2021-06-04 09:46:28 +02:00
<?= "<?php\n" ?>
namespace <?= $namespace; ?>;
use App\Core\Factory\FactoryInterface;
use <?= $entity ?> as Entity;
class <?= $class_name; ?> implements FactoryInterface
{
public function create(): Entity
{
return new Entity();
}
}