18 lines
318 B
PHP
18 lines
318 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Factory;
|
||
|
|
||
|
use App\Core\Factory\FactoryInterface;
|
||
|
use App\Entity\BillVendor as Entity;
|
||
|
|
||
|
class BillVendorFactory implements FactoryInterface
|
||
|
{
|
||
|
public function create(string $label): Entity
|
||
|
{
|
||
|
$entity = new Entity();
|
||
|
$entity->setLabel($label);
|
||
|
|
||
|
return $entity;
|
||
|
}
|
||
|
}
|