suivi/src/Factory/BillVendorFactory.php

18 lines
335 B
PHP
Raw Normal View History

2023-04-08 17:47:43 +02:00
<?php
namespace App\Factory;
use App\Core\Factory\FactoryInterface;
use App\Entity\BillVendor as Entity;
class BillVendorFactory implements FactoryInterface
{
public function create(?string $label = null): Entity
2023-04-08 17:47:43 +02:00
{
$entity = new Entity();
$entity->setLabel((string) $label);
2023-04-08 17:47:43 +02:00
return $entity;
}
}