|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <?php
-
- namespace Lc\SovBundle\Doctrine\Pattern;
-
- use Lc\SovBundle\Doctrine\EntityInterface;
- use Lc\SovBundle\Doctrine\Extension\BlameableInterface;
- use Lc\SovBundle\Doctrine\Extension\BlameableTrait;
- use Lc\SovBundle\Doctrine\Extension\DevAliasInterface;
- use Lc\SovBundle\Doctrine\Extension\DevAliasTrait;
- use Lc\SovBundle\Doctrine\Extension\SeoInterface;
- use Lc\SovBundle\Doctrine\Extension\SeoTrait;
- use Lc\SovBundle\Doctrine\Extension\SluggableInterface;
- use Lc\SovBundle\Doctrine\Extension\SluggableTrait;
- use Lc\SovBundle\Doctrine\Extension\SortableInterface;
- use Lc\SovBundle\Doctrine\Extension\SortableTrait;
- use Lc\SovBundle\Doctrine\Extension\StatusTrait;
- use Lc\SovBundle\Doctrine\Extension\TimestampableInterface;
- use Lc\SovBundle\Doctrine\Extension\StatusInterface;
- use Doctrine\ORM\Mapping as ORM;
- use Gedmo\Mapping\Annotation as Gedmo;
- use Lc\SovBundle\Doctrine\Extension\TimestampableTrait;
-
-
- /**
- * @ORM\MappedSuperclass
- */
- abstract class AbstractFullEntity implements BlameableInterface, SeoInterface, SluggableInterface, SortableInterface,
- StatusInterface, TimestampableInterface, DevAliasInterface, EntityInterface
- {
-
- use BlameableTrait;
- use SeoTrait;
- use SluggableTrait;
- use SortableTrait;
- use StatusTrait;
- use TimestampableTrait;
- use DevAliasTrait;
-
- /**
- * @Gedmo\Translatable
- * @ORM\Column(type="string", length=255)
- */
- protected $title;
-
- /**
- * @Gedmo\Translatable
- * @ORM\Column(type="text", nullable=true)
- */
- protected $description;
-
-
- public function getTitle(): ?string
- {
- return $this->title;
- }
-
- public function setTitle(string $title): self
- {
- $this->title = $title;
-
- return $this;
- }
-
-
- public function getDescription(): ?string
- {
- return $this->description;
- }
-
- public function setDescription(?string $description): self
- {
- $this->description = $description;
-
- return $this;
- }
-
-
- }
|