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.

79 line
1.7KB

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