NavCountry.php 602B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace Doctrine\Tests\Models\Navigation;
  3. /**
  4. * @Entity
  5. * @Table(name="navigation_countries")
  6. */
  7. class NavCountry
  8. {
  9. /**
  10. * @Id
  11. * @Column(type="integer")
  12. * @generatedValue
  13. */
  14. private $id;
  15. /**
  16. * @Column(type="string")
  17. */
  18. private $name;
  19. /**
  20. * @OneToMany(targetEntity="NavPointOfInterest", mappedBy="country")
  21. */
  22. private $pois;
  23. function __construct($name) {
  24. $this->name = $name;
  25. }
  26. public function getId() {
  27. return $this->id;
  28. }
  29. public function getName() {
  30. return $this->name;
  31. }
  32. }