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.

82 líneas
2.1KB

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