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

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