Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- <?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(MerchantInterface $merchant, string $type): DocumentInterface
- {
- $document = new Document();
-
- $document->setMerchant($merchant);
- $document->setType($type);
- $document->setTitle('');
- $document->setStatus(1);
-
- return $document;
- }
-
- }
|