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

  1. <?php
  2. namespace Webbamboo\SpinnersCommon\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Webbamboo\SpinnersCommon\Repository\CompanythumbnailaltRepository;
  5. /**
  6.  * Companythumbnailalt
  7.  *
  8.  * @ORM\Table("Companythumbnailalt")
  9.  * @ORM\Entity
  10.  */
  11. #[ORM\Entity(repositoryClassCompanythumbnailaltRepository::class)]
  12. class Companythumbnailalt
  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="alt", type="string", length=255)
  26.      */
  27.     private $alt;
  28.     /**
  29.      * @ORM\OneToMany(targetEntity="Companythumbnail", mappedBy="alt")
  30.      */
  31.     private $thumbnails;
  32.     /**
  33.      * Constructor
  34.      */
  35.     public function __construct()
  36.     {
  37.         $this->thumbnails = new \Doctrine\Common\Collections\ArrayCollection();
  38.     }
  39.     /**
  40.      * Get id
  41.      *
  42.      * @return integer
  43.      */
  44.     public function getId()
  45.     {
  46.         return $this->id;
  47.     }
  48.     /**
  49.      * Set alt
  50.      *
  51.      * @param string $alt
  52.      * @return Companythumbnailalt
  53.      */
  54.     public function setAlt($alt)
  55.     {
  56.         $this->alt $alt;
  57.         return $this;
  58.     }
  59.     /**
  60.      * Get alt
  61.      *
  62.      * @return string
  63.      */
  64.     public function getAlt()
  65.     {
  66.         return $this->alt;
  67.     }
  68.     /**
  69.      * Add thumbnails
  70.      *
  71.      * @param \Webbamboo\SpinnersCommon\Entity\Companythumbnail $thumbnails
  72.      * @return Companythumbnailalt
  73.      */
  74.     public function addThumbnail(\Webbamboo\SpinnersCommon\Entity\Companythumbnail $thumbnails)
  75.     {
  76.         $this->thumbnails[] = $thumbnails;
  77.         return $this;
  78.     }
  79.     /**
  80.      * Remove thumbnails
  81.      *
  82.      * @param \Webbamboo\SpinnersCommon\Entity\Companythumbnail $thumbnails
  83.      */
  84.     public function removeThumbnail(\Webbamboo\SpinnersCommon\Entity\Companythumbnail $thumbnails)
  85.     {
  86.         $this->thumbnails->removeElement($thumbnails);
  87.     }
  88.     /**
  89.      * Get thumbnails
  90.      *
  91.      * @return \Doctrine\Common\Collections\Collection
  92.      */
  93.     public function getThumbnails()
  94.     {
  95.         return $this->thumbnails;
  96.     }
  97. }