location.php 871 Bytes
<?php

/**
 * @Entity @Table(name="location")
 **/
class location
{
    /** @Id @Column(type="integer") @GeneratedValue **/
    protected $id;

    /** @Column(type="float") **/
    protected $x;

    /** @Column(type="float") **/
    protected $y;

    /** @ManyToOne(targetEntity="map", cascade="persist")
      * @JoinColumn(name="map_id", referencedColumnName="id")
    */
    protected $map;

    public function getId()
    {
        return $this->id;
    }

    public function getMap()
    {
        return $this->map;
    }

    public function getY()
    {
        return $this->y;
    }

    public function setY($y)
    {
        $this->y = $y;
    }

    public function getX()
    {
        return $this->x;
    }

    public function setX($x)
    {
        $this->x = $x;
    }

    public function setMap($map)
    {
        $this->map = $map;
    }
}
?>