12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
-
- namespace Doctrine\Tests\Models\Navigation;
-
-
- class NavTour
- {
-
-
- private $id;
-
-
-
- private $name;
-
-
-
- private $pois;
-
- public function __construct($name)
- {
- $this->name = $name;
- $this->pois = new \Doctrine\Common\Collections\ArrayCollection;
- }
-
- public function addPointOfInterest(NavPointOfInterest $poi)
- {
- $this->pois[] = $poi;
- }
-
- public function getPointOfInterests()
- {
- return $this->pois;
- }
-
- public function getName()
- {
- return $this->name;
- }
-
- public function getId()
- {
- return $this->id;
- }
- }
|