|
1234567891011121314151617181920212223242526272829 |
- <?php
-
- namespace Lc\CaracoleBundle\Factory\File;
-
- use App\Entity\File\Document;
- use Lc\CaracoleBundle\Context\MerchantContextTrait;
- use Lc\CaracoleBundle\Model\Address\AddressInterface;
- use Lc\CaracoleBundle\Model\File\DocumentInterface;
- use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
- use Lc\CaracoleBundle\Model\Section\SectionInterface;
- use Lc\SovBundle\Factory\AbstractFactory;
- use Lc\SovBundle\Model\User\UserInterface;
-
- class DocumentFactory extends AbstractFactory
- {
-
- public function create(SectionInterface $section, string $type): DocumentInterface
- {
- $document = new Document();
-
- $document->setSection($section);
- $document->setType($type);
- $document->setTitle('');
- $document->setStatus(1);
-
- return $document;
- }
-
- }
|