vendor/webbamboo/spinners-common/src/Entity/H1city.php line 13

  1. <?php
  2. namespace Webbamboo\SpinnersCommon\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * H1city
  6.  *
  7.  * @ORM\Table("H1city")
  8.  * @ORM\Entity
  9.  */
  10. class H1city
  11. {
  12.     /**
  13.      * @var integer
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="h1", type="string", length=255)
  24.      */
  25.     private $h1;
  26.     /**
  27.      * @ORM\OneToMany(targetEntity="City", mappedBy="h1")
  28.      */
  29.     private $cities;
  30.     /**
  31.      * Get id
  32.      *
  33.      * @return integer
  34.      */
  35.     public function getId()
  36.     {
  37.         return $this->id;
  38.     }
  39.     /**
  40.      * Set h1
  41.      *
  42.      * @param string $h1
  43.      * @return H1city
  44.      */
  45.     public function setH1($h1)
  46.     {
  47.         $this->h1 $h1;
  48.         return $this;
  49.     }
  50.     /**
  51.      * Get h1
  52.      *
  53.      * @return string
  54.      */
  55.     public function getH1()
  56.     {
  57.         return $this->h1;
  58.     }
  59.     /**
  60.      * Constructor
  61.      */
  62.     public function __construct()
  63.     {
  64.         $this->cities = new \Doctrine\Common\Collections\ArrayCollection();
  65.     }
  66.     /**
  67.      * Add cities
  68.      *
  69.      * @param \Webbamboo\SpinnersCommon\Entity\City $cities
  70.      * @return H1city
  71.      */
  72.     public function addCity(\Webbamboo\SpinnersCommon\Entity\City $cities)
  73.     {
  74.         $this->cities[] = $cities;
  75.         return $this;
  76.     }
  77.     /**
  78.      * Remove cities
  79.      *
  80.      * @param \Webbamboo\SpinnersCommon\Entity\City $cities
  81.      */
  82.     public function removeCity(\Webbamboo\SpinnersCommon\Entity\City $cities)
  83.     {
  84.         $this->cities->removeElement($cities);
  85.     }
  86.     /**
  87.      * Get cities
  88.      *
  89.      * @return \Doctrine\Common\Collections\Collection
  90.      */
  91.     public function getCities()
  92.     {
  93.         return $this->cities;
  94.     }
  95. }