deblan.io-murph/core/Factory/SettingFactory.php

23 lines
352 B
PHP
Raw Normal View History

2021-05-02 20:41:06 +02:00
<?php
namespace App\Core\Factory;
use App\Core\Entity\Setting;
/**
* class SettingFactory.
*
* @author Simon Vieille <simon@deblan.fr>
*/
2021-05-12 12:04:03 +02:00
class SettingFactory implements FactoryInterface
2021-05-02 20:41:06 +02:00
{
public function create(string $code): Setting
{
$entity = new Setting();
$entity->setCode($code);
return $entity;
}
}