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
|
|
|
|
{
|
2023-04-09 17:56:15 +02:00
|
|
|
public function create(?string $label = null): Entity
|
2023-04-08 17:47:43 +02:00
|
|
|
{
|
|
|
|
$entity = new Entity();
|
2023-04-09 17:56:15 +02:00
|
|
|
$entity->setLabel((string) $label);
|
2023-04-08 17:47:43 +02:00
|
|
|
|
|
|
|
return $entity;
|
|
|
|
}
|
|
|
|
}
|