vendor/webbamboo/spinners-common/src/Entity/H1county.php line 15

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