You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 satır
795B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\File;
  3. use App\Entity\File\Document;
  4. use Lc\CaracoleBundle\Context\MerchantContextTrait;
  5. use Lc\CaracoleBundle\Model\Address\AddressInterface;
  6. use Lc\CaracoleBundle\Model\File\DocumentInterface;
  7. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  8. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  9. use Lc\SovBundle\Factory\AbstractFactory;
  10. use Lc\SovBundle\Model\User\UserInterface;
  11. class DocumentFactory extends AbstractFactory
  12. {
  13. public function create(MerchantInterface $merchant, string $type): DocumentInterface
  14. {
  15. $document = new Document();
  16. $document->setMerchant($merchant);
  17. $document->setType($type);
  18. $document->setTitle('');
  19. $document->setStatus(1);
  20. return $document;
  21. }
  22. }