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 373B

3 years ago
3 years ago
1234567891011121314151617181920
  1. <?php
  2. namespace Lc\SovBundle\Factory\Site;
  3. use App\Entity\Site\News;
  4. use Lc\SovBundle\Factory\AbstractFactory;
  5. use Lc\SovBundle\Model\Site\NewsInterface;
  6. class NewsFactory extends AbstractFactory implements NewsFactoryInterface
  7. {
  8. public function create(): NewsInterface
  9. {
  10. $news = new News();
  11. $news->setStatus(1);
  12. return $news;
  13. }
  14. }