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.

96 line
2.0KB

  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Lc\ShopBundle\Context\SluggableInterface;
  6. use Lc\ShopBundle\Context\SortableInterface;
  7. use Lc\ShopBundle\Context\StatusInterface;
  8. use Lc\ShopBundle\Model\AbstractEntity;
  9. /**
  10. * @ORM\MappedSuperclass
  11. */
  12. abstract class AbstractDocumentEntity extends AbstractEntity implements StatusInterface, SortableInterface, SluggableInterface
  13. {
  14. use SortableTrait;
  15. use StatusTrait;
  16. use SluggableTrait;
  17. /**
  18. * @ORM\Column(type="string", length=255)
  19. */
  20. protected $title;
  21. /**
  22. * @ORM\Column(type="text", nullable=true)
  23. */
  24. protected $description;
  25. /**
  26. * @ORM\Column(type="string", length=255, nullable=true)
  27. */
  28. protected $image;
  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 getImage(): ?string
  52. {
  53. return $this->image;
  54. }
  55. public function setImage(?string $image): self
  56. {
  57. $this->image = $image;
  58. return $this;
  59. }
  60. public function getDevAlias(): ?string
  61. {
  62. return $this->devAlias;
  63. }
  64. public function setDevAlias(?string $devAlias): self
  65. {
  66. $this->devAlias = $devAlias;
  67. return $this;
  68. }
  69. }