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 satır
2.0KB

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