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.

DocumentFactory.php 692B

пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\File;
  3. use App\Entity\File\Document;
  4. use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
  5. use Lc\CaracoleBundle\Model\Address\AddressInterface;
  6. use Lc\CaracoleBundle\Model\File\DocumentInterface;
  7. use Lc\SovBundle\Factory\AbstractFactory;
  8. use Lc\SovBundle\Model\User\UserInterface;
  9. class DocumentFactory extends AbstractFactory
  10. {
  11. use MerchantFactoryTrait;
  12. public function create(string $type): DocumentInterface
  13. {
  14. $document = new Document();
  15. $document->setMerchant($this->merchant);
  16. $document->setType($type);
  17. $document->setTitle('');
  18. $document->setStatus(1);
  19. return $document;
  20. }
  21. }