2010-04-03 01:37:15 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Models\Navigation;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Entity
|
|
|
|
* @Table(name="navigation_pois")
|
|
|
|
*/
|
|
|
|
class NavPointOfInterest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @Id
|
|
|
|
* @Column(type="integer", name="nav_long")
|
|
|
|
*/
|
|
|
|
private $long;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Id
|
|
|
|
* @Column(type="integer", name="nav_lat")
|
|
|
|
*/
|
|
|
|
private $lat;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Column(type="string")
|
|
|
|
*/
|
|
|
|
private $name;
|
|
|
|
|
|
|
|
/**
|
2012-01-15 14:27:28 +04:00
|
|
|
* @ManyToOne(targetEntity="NavCountry", inversedBy="pois")
|
2010-04-03 01:37:15 +04:00
|
|
|
*/
|
|
|
|
private $country;
|
|
|
|
|
|
|
|
public function __construct($lat, $long, $name, $country)
|
|
|
|
{
|
|
|
|
$this->lat = $lat;
|
|
|
|
$this->long = $long;
|
|
|
|
$this->name = $name;
|
|
|
|
$this->country = $country;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getLong() {
|
|
|
|
return $this->long;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getLat() {
|
|
|
|
return $this->lat;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
return $this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCountry() {
|
|
|
|
return $this->country;
|
|
|
|
}
|
2012-01-15 14:27:28 +04:00
|
|
|
}
|