您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

29 行
692B

  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. }