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

84 行
1.9KB

  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\ImageInterface;
  6. use Lc\ShopBundle\Context\SeoInterface;
  7. use Lc\ShopBundle\Context\SluggableInterface;
  8. use Lc\ShopBundle\Context\SortableInterface;
  9. use Lc\ShopBundle\Context\StatusInterface;
  10. use Symfony\Component\HttpFoundation\File\File;
  11. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  12. /**
  13. * @ORM\MappedSuperclass
  14. * @Vich\Uploadable
  15. */
  16. abstract class AbstractDocumentEntity extends AbstractEntity implements StatusInterface, SortableInterface, SluggableInterface, SeoInterface, ImageInterface
  17. {
  18. use SortableTrait;
  19. use StatusTrait;
  20. use SluggableTrait;
  21. use ImageTrait;
  22. use SeoTrait;
  23. /**
  24. * @ORM\Column(type="string", length=255)
  25. */
  26. protected $title;
  27. /**
  28. * @ORM\Column(type="text", nullable=true)
  29. */
  30. protected $description;
  31. /**
  32. * @ORM\Column(type="string", length=255, nullable=true)
  33. */
  34. protected $devAlias;
  35. public function getTitle(): ?string
  36. {
  37. return $this->title;
  38. }
  39. public function setTitle(string $title): self
  40. {
  41. $this->title = $title;
  42. return $this;
  43. }
  44. public function getDescription(): ?string
  45. {
  46. return $this->description;
  47. }
  48. public function setDescription(?string $description): self
  49. {
  50. $this->description = $description;
  51. return $this;
  52. }
  53. public function getDevAlias(): ?string
  54. {
  55. return $this->devAlias;
  56. }
  57. public function setDevAlias(?string $devAlias): self
  58. {
  59. $this->devAlias = $devAlias;
  60. return $this;
  61. }
  62. }