NavPointOfInterest.php 937B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace Doctrine\Tests\Models\Navigation;
  3. /**
  4. * @Entity
  5. * @Table(name="navigation_pois")
  6. */
  7. class NavPointOfInterest
  8. {
  9. /**
  10. * @Id
  11. * @Column(type="integer", name="nav_long")
  12. */
  13. private $long;
  14. /**
  15. * @Id
  16. * @Column(type="integer", name="nav_lat")
  17. */
  18. private $lat;
  19. /**
  20. * @Column(type="string")
  21. */
  22. private $name;
  23. /**
  24. * @ManyToOne(targetEntity="NavCountry")
  25. */
  26. private $country;
  27. public function __construct($lat, $long, $name, $country)
  28. {
  29. $this->lat = $lat;
  30. $this->long = $long;
  31. $this->name = $name;
  32. $this->country = $country;
  33. }
  34. public function getLong() {
  35. return $this->long;
  36. }
  37. public function getLat() {
  38. return $this->lat;
  39. }
  40. public function getName() {
  41. return $this->name;
  42. }
  43. public function getCountry() {
  44. return $this->country;
  45. }
  46. }