123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?php
- namespace MapBundle\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use ExtraDataBundle\Entity\Traits\ExtraDataTrait;
- use Symfony\Component\Validator\Constraints as Assert;
- /**
- * @ORM\Table
- * @ORM\Entity
- */
- class Location
- {
- use ExtraDataTrait;
- /**
- * @var int
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- private $id;
- /**
- * @var int
- *
- * @ORM\Column(type="integer", nullable=true)
- */
- private $mapId;
- /**
- * @var int
- *
- * @ORM\Column(type="integer", nullable=true)
- */
- private $objectTypeId;
- /**
- * @return string
- */
- public function getData()
- {
- return array(
- 'mapId' => $this->mapId,
- 'extraData' => $this->jsonExtraData(),
- );
- }
- /**
- * Get id
- *
- * @return int
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * 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;
- }
- /**
- * Set objectTypeId
- *
- * @param integer $objectTypeId
- *
- * @return Location
- */
- public function setObjectTypeId($objectTypeId = null)
- {
- $this->objectTypeId = $objectTypeId;
- return $this;
- }
- /**
- * Get objectTypeId
- *
- * @return int
- */
- public function getObjectTypeId()
- {
- return $this->objectTypeId;
- }
- }
|