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.

70 lines
1.7KB

  1. <?php
  2. namespace Lc\SovBundle\Model\Cms;
  3. use Lc\SovBundle\IModel\Cms\BlameableInterface;
  4. use Lc\SovBundle\IModel\Cms\DevAliasInterface;
  5. use Lc\SovBundle\IModel\Cms\SeoInterface;
  6. use Lc\SovBundle\IModel\Cms\SluggableInterface;
  7. use Lc\SovBundle\IModel\Cms\SortableInterface;
  8. use Lc\SovBundle\IModel\Cms\TimestampableInterface;
  9. use Lc\SovBundle\IModel\Cms\StatusInterface;
  10. use Doctrine\ORM\Mapping as ORM;
  11. use Gedmo\Mapping\Annotation as Gedmo;
  12. use Lc\SovBundle\IModel\EntityInterface;
  13. /**
  14. * @ORM\MappedSuperclass
  15. */
  16. abstract class AbstractDocument implements BlameableInterface, SeoInterface, SluggableInterface, SortableInterface, StatusInterface, TimestampableInterface, DevAliasInterface, EntityInterface
  17. {
  18. use BlameableTrait;
  19. use SeoTrait;
  20. use SluggableTrait;
  21. use SortableTrait;
  22. use StatusTrait;
  23. use TimestampableTrait;
  24. use DevAliasTrait;
  25. /**
  26. * @Gedmo\Translatable
  27. * @ORM\Column(type="string", length=255)
  28. */
  29. protected $title;
  30. /**
  31. * @Gedmo\Translatable
  32. * @ORM\Column(type="text", nullable=true)
  33. */
  34. protected $description;
  35. public function getTitle(): ?string
  36. {
  37. return $this->title;
  38. }
  39. public function setTitle(string $title): self
  40. {
  41. $this->title = $title;
  42. return $this;
  43. }
  44. public function getDescription(): ?string
  45. {
  46. return $this->description;
  47. }
  48. public function setDescription(?string $description): self
  49. {
  50. $this->description = $description;
  51. return $this;
  52. }
  53. }