19 lines
340 B
PHP
19 lines
340 B
PHP
<?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;
|
|
}
|
|
}
|