Location.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. namespace MapBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use ExtraDataBundle\Entity\Traits\ExtraDataTrait;
  5. /**
  6. * @ORM\Table
  7. * @ORM\Entity
  8. */
  9. class Location
  10. {
  11. use ExtraDataTrait;
  12. /**
  13. * @var int
  14. *
  15. * @ORM\Column(name="id", type="integer")
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. */
  19. private $id;
  20. /**
  21. * @var int
  22. *
  23. * @ORM\Column(type="integer", nullable=true)
  24. */
  25. private $mapId;
  26. /**
  27. * @return string
  28. */
  29. public function getData()
  30. {
  31. return array(
  32. 'mapId' => $this->mapId,
  33. 'extraData' => $this->jsonExtraData(),
  34. );
  35. }
  36. /**
  37. * Get id
  38. *
  39. * @return int
  40. */
  41. public function getId()
  42. {
  43. return $this->id;
  44. }
  45. /**
  46. * Set mapId
  47. *
  48. * @param integer $mapId
  49. *
  50. * @return Location
  51. */
  52. public function setMapId($mapId = null)
  53. {
  54. $this->mapId = $mapId;
  55. return $this;
  56. }
  57. /**
  58. * Get mapId
  59. *
  60. * @return int
  61. */
  62. public function getMapId()
  63. {
  64. return $this->mapId;
  65. }
  66. }