$this->mapId, 'extraData' => json_decode($this->extraData), ); } /** * Get id * * @return int */ public function getId() { return $this->id; } /** * @return DeviceInterface */ public function getDevice() { return $this->device; } /** * @param DeviceInterface $device */ public function setDevice(DeviceInterface $device) { $this->device = $device; } /** * Set mapId * * @param integer $mapId * * @return Location */ public function setMapId($mapId = null) { $this->mapId = $mapId; return $this; } /** * Get mapId * * @return int */ public function getMapId() { return $this->mapId; } }