Sport.php 858 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace Translatable\Fixture;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity
  7. */
  8. class Sport
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @Gedmo\Translatable
  18. * @ORM\Column(length=128)
  19. */
  20. private $title;
  21. /**
  22. * @ORM\Column(type="text", nullable=true)
  23. */
  24. private $description;
  25. public function getId()
  26. {
  27. return $this->id;
  28. }
  29. public function setTitle($title)
  30. {
  31. $this->title = $title;
  32. }
  33. public function getTitle()
  34. {
  35. return $this->title;
  36. }
  37. public function setDescription($description)
  38. {
  39. $this->description = $description;
  40. }
  41. public function getDescription()
  42. {
  43. return $this->description;
  44. }
  45. }