deblan.io-murph/src/Factory/Blog/PostFactory.php

26 lines
384 B
PHP
Raw Normal View History

<?php
namespace App\Factory\Blog;
2021-05-12 12:04:03 +02:00
use App\Core\Factory\FactoryInterface;
use App\Entity\Blog\Post;
/**
* class PostFactory.
*
* @author Simon Vieille <simon@deblan.fr>
*/
2021-05-12 12:04:03 +02:00
class PostFactory implements FactoryInterface
{
public function create(): Post
{
$entity = new Post();
$entity
->setStatus(0)
;
return $entity;
}
}