suivi/src/Factory/BillCategoryFactory.php

18 lines
339 B
PHP
Raw Normal View History

<?php
namespace App\Factory;
use App\Core\Factory\FactoryInterface;
use App\Entity\BillCategory as Entity;
class BillCategoryFactory implements FactoryInterface
{
public function create(?string $label = null): Entity
{
$entity = new Entity();
$entity->setLabel((string) $label);
return $entity;
}
}