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.

NewsFactory.php 442B

3 anni fa
123456789101112131415161718192021
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Site;
  3. use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
  4. use Lc\SovBundle\Factory\Site\NewsFactory as SovNewsFactory;
  5. use Lc\SovBundle\Model\Site\NewsInterface;
  6. class NewsFactory extends SovNewsFactory
  7. {
  8. use MerchantFactoryTrait;
  9. public function create(): NewsInterface
  10. {
  11. $news = parent::create();
  12. $news->setMerchant($this->merchant);
  13. return $news;
  14. }
  15. }