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

  1. <?php
  2. namespace Webbamboo\SpinnersCommon\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Webbamboo\SpinnersCommon\Repository\CountythumbnailRepository;
  5. /**
  6.  * Countythumbnail
  7.  *
  8.  * @ORM\Table("Countythumbnail")
  9.  * @ORM\Entity
  10.  */
  11. #[ORM\Entity(repositoryClassCountythumbnailRepository::class)]
  12. class Countythumbnail
  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="path", type="string", length=255, unique=true)
  26.      */
  27.     private $path;
  28.     /**
  29.     * @ORM\ManyToOne(targetEntity="Countythumbnailalt", inversedBy="thumbnails")
  30.     * @ORM\JoinColumn(referencedColumnName="id")
  31.     */
  32.     private $alt;
  33.     /**
  34.     * @ORM\ManyToOne(targetEntity="Countythumbnailname", inversedBy="thumbnails")
  35.     * @ORM\JoinColumn(referencedColumnName="id")
  36.     */
  37.     private $name;
  38.     /**
  39.      * @ORM\OneToMany(targetEntity="Counties", mappedBy="thumbnail")
  40.      */
  41.     private $counties;
  42.     /**
  43.      * Get id
  44.      *
  45.      * @return integer
  46.      */
  47.     public function getId()
  48.     {
  49.         return $this->id;
  50.     }
  51.     /**
  52.      * Set path
  53.      *
  54.      * @param string $path
  55.      * @return Countythumbnail
  56.      */
  57.     public function setPath($path)
  58.     {
  59.         $this->path $path;
  60.         return $this;
  61.     }
  62.     /**
  63.      * Get path
  64.      *
  65.      * @return string
  66.      */
  67.     public function getPath()
  68.     {
  69.         return $this->path;
  70.     }
  71.     /**
  72.      * Constructor
  73.      */
  74.     public function __construct()
  75.     {
  76.         $this->counties = new \Doctrine\Common\Collections\ArrayCollection();
  77.     }
  78.     /**
  79.      * Set alt
  80.      *
  81.      * @param \Webbamboo\SpinnersCommon\Entity\Countythumbnailalt $alt
  82.      * @return Countythumbnail
  83.      */
  84.     public function setAlt(\Webbamboo\SpinnersCommon\Entity\Countythumbnailalt $alt null)
  85.     {
  86.         $this->alt $alt;
  87.         return $this;
  88.     }
  89.     /**
  90.      * Get alt
  91.      *
  92.      * @return \Webbamboo\SpinnersCommon\Entity\Countythumbnailalt
  93.      */
  94.     public function getAlt()
  95.     {
  96.         return $this->alt;
  97.     }
  98.     /**
  99.      * Set name
  100.      *
  101.      * @param \Webbamboo\SpinnersCommon\Entity\Countythumbnailname $name
  102.      * @return Countythumbnail
  103.      */
  104.     public function setName(\Webbamboo\SpinnersCommon\Entity\Countythumbnailname $name null)
  105.     {
  106.         $this->name $name;
  107.         return $this;
  108.     }
  109.     /**
  110.      * Get name
  111.      *
  112.      * @return \Webbamboo\SpinnersCommon\Entity\Countythumbnailname
  113.      */
  114.     public function getName()
  115.     {
  116.         return $this->name;
  117.     }
  118.     /**
  119.      * Add counties
  120.      *
  121.      * @param \Webbamboo\SpinnersCommon\Entity\Counties $counties
  122.      * @return Countythumbnail
  123.      */
  124.     public function addCounty(\Webbamboo\SpinnersCommon\Entity\Counties $counties)
  125.     {
  126.         $this->counties[] = $counties;
  127.         return $this;
  128.     }
  129.     /**
  130.      * Remove counties
  131.      *
  132.      * @param \Webbamboo\SpinnersCommon\Entity\Counties $counties
  133.      */
  134.     public function removeCounty(\Webbamboo\SpinnersCommon\Entity\Counties $counties)
  135.     {
  136.         $this->counties->removeElement($counties);
  137.     }
  138.     /**
  139.      * Get counties
  140.      *
  141.      * @return \Doctrine\Common\Collections\Collection
  142.      */
  143.     public function getCounties()
  144.     {
  145.         return $this->counties;
  146.     }
  147. }