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.

AbstractDocumentEntity.php 2.3KB

4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
4 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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\SortableInterface;
  6. use Lc\ShopBundle\Context\StatusInterface;
  7. use Lc\ShopBundle\Model\AbstractEntity;
  8. /**
  9. * @ORM\MappedSuperclass
  10. */
  11. abstract class AbstractDocumentEntity extends AbstractEntity implements StatusInterface, SortableInterface
  12. {
  13. use SortableTrait;
  14. use StatusTrait;
  15. /**
  16. * @ORM\Column(type="string", length=255)
  17. */
  18. protected $title;
  19. /**
  20. * @ORM\Column(type="string", length=255)
  21. * @Gedmo\Slug(fields={"title"})
  22. */
  23. protected $slug;
  24. /**
  25. * @ORM\Column(type="text", nullable=true)
  26. */
  27. protected $description;
  28. /**
  29. * @ORM\Column(type="string", length=255, nullable=true)
  30. */
  31. protected $image;
  32. /**
  33. * @ORM\Column(type="string", length=255, nullable=true)
  34. */
  35. protected $devAlias;
  36. public function getTitle(): ?string
  37. {
  38. return $this->title;
  39. }
  40. public function setTitle(string $title): self
  41. {
  42. $this->title = $title;
  43. return $this;
  44. }
  45. public function getSlug(): ?string
  46. {
  47. return $this->slug;
  48. }
  49. public function setSlug(string $slug): self
  50. {
  51. $this->slug = $slug;
  52. return $this;
  53. }
  54. public function getDescription(): ?string
  55. {
  56. return $this->description;
  57. }
  58. public function setDescription(?string $description): self
  59. {
  60. $this->description = $description;
  61. return $this;
  62. }
  63. public function getImage(): ?string
  64. {
  65. return $this->image;
  66. }
  67. public function setImage(?string $image): self
  68. {
  69. $this->image = $image;
  70. return $this;
  71. }
  72. public function getDevAlias(): ?string
  73. {
  74. return $this->devAlias;
  75. }
  76. public function setDevAlias(?string $devAlias): self
  77. {
  78. $this->devAlias = $devAlias;
  79. return $this;
  80. }
  81. }