No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

119 líneas
2.4KB

  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\Model\AbstractEntity;
  6. /**
  7. * @ORM\MappedSuperclass
  8. */
  9. abstract class AbstractDocumentEntity extends AbstractEntity
  10. {
  11. /**
  12. * @ORM\Column(type="string", length=255)
  13. */
  14. protected $title;
  15. /**
  16. * @ORM\Column(type="string", length=255)
  17. * @Gedmo\Slug(fields={"title"})
  18. */
  19. protected $slug;
  20. /**
  21. * @ORM\Column(type="text", nullable=true)
  22. */
  23. protected $description;
  24. /**
  25. * @ORM\Column(type="string", length=255, nullable=true)
  26. */
  27. protected $image;
  28. /**
  29. * @ORM\Column(type="float")
  30. */
  31. protected $status;
  32. /**
  33. * @ORM\Column(type="integer")
  34. * @Gedmo\SortablePosition()
  35. */
  36. protected $position;
  37. public function getTitle(): ?string
  38. {
  39. return $this->title;
  40. }
  41. public function setTitle(string $title): self
  42. {
  43. $this->title = $title;
  44. return $this;
  45. }
  46. public function getSlug(): ?string
  47. {
  48. return $this->slug;
  49. }
  50. public function setSlug(string $slug): self
  51. {
  52. $this->slug = $slug;
  53. return $this;
  54. }
  55. public function getDescription(): ?string
  56. {
  57. return $this->description;
  58. }
  59. public function setDescription(?string $description): self
  60. {
  61. $this->description = $description;
  62. return $this;
  63. }
  64. public function getImage(): ?string
  65. {
  66. return $this->image;
  67. }
  68. public function setImage(?string $image): self
  69. {
  70. $this->image = $image;
  71. return $this;
  72. }
  73. public function getStatus(): ?float
  74. {
  75. return $this->status;
  76. }
  77. public function setStatus(float $status): self
  78. {
  79. $this->status = $status;
  80. return $this;
  81. }
  82. public function getPosition(): ?int
  83. {
  84. return $this->position;
  85. }
  86. public function setPosition(int $position): self
  87. {
  88. $this->position = $position;
  89. return $this;
  90. }
  91. }