選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

67 行
1.6KB

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