Location.php 1.2 KB

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