suivi/src/Factory/ExpenseReportFactory.php

19 lines
340 B
PHP
Raw Permalink Normal View History

2022-04-29 11:31:12 +02:00
<?php
namespace App\Factory;
use App\Core\Factory\FactoryInterface;
use App\Entity\ExpenseReport as Entity;
use App\Entity\User;
class ExpenseReportFactory implements FactoryInterface
{
public function create(User $user): Entity
{
$entity = new Entity();
$entity->setUser($user);
return $entity;
}
}