src/Entity/Gos/Uniqskills/Landing/LandingModuleType.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos\Uniqskills\Landing;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * LandingModuleType
  8.  *
  9.  * @ORM\Table(name="landing_module_type")
  10.  * @ORM\Entity(repositoryClass="App\Repository\Gos\Uniqskills\Landing\LandingModuleTypeRepository")
  11.  */
  12. class LandingModuleType
  13. {
  14.     /**
  15.      * @var int
  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="name", type="string", length=191, unique=true)
  26.      */
  27.     private $name;
  28.     /**
  29.      * @ORM\OneToMany(targetEntity="LandingModule", mappedBy="landingModuleType")
  30.      */
  31.     private $landingModules;
  32.     /**
  33.      * @ORM\Column(type="simple_array", nullable=true)
  34.      */
  35.     private $specificLandingTemplates = [];
  36.     public function __construct()
  37.     {
  38.         $this->landingModules = new ArrayCollection();
  39.     }
  40.     /**
  41.      * Get id
  42.      *
  43.      * @return int
  44.      */
  45.     public function getId()
  46.     {
  47.         return $this->id;
  48.     }
  49.     /**
  50.      * Set name
  51.      *
  52.      * @param string $name
  53.      *
  54.      * @return LandingModuleType
  55.      */
  56.     public function setName($name)
  57.     {
  58.         $this->name $name;
  59.         return $this;
  60.     }
  61.     /**
  62.      * Get name
  63.      *
  64.      * @return string
  65.      */
  66.     public function getName()
  67.     {
  68.         return $this->name;
  69.     }
  70.     /**
  71.      * Add landingModule
  72.      *
  73.      * @param LandingModule $landingModule
  74.      * @return LandingModuleType
  75.      */
  76.     public function addLandingModule(LandingModule $landingModule)
  77.     {
  78.         $this->landingModules[] = $landingModule;
  79.         return $this;
  80.     }
  81.     /**
  82.      * Remove landingModule
  83.      *
  84.      * @param LandingModule $landingModule
  85.      */
  86.     public function removeLandingModule(LandingModule $landingModule)
  87.     {
  88.         $this->landingModules->removeElement($landingModule);
  89.     }
  90.     /**
  91.      * Get landingModules
  92.      *
  93.      * @return \Doctrine\Common\Collections\Collection
  94.      */
  95.     public function getLandingModules()
  96.     {
  97.         return $this->landingModules;
  98.     }
  99.     public function getSpecificLandingTemplates(): ?array
  100.     {
  101.         return $this->specificLandingTemplates;
  102.     }
  103.     public function setSpecificLandingTemplates(?array $specificLandingTemplates): self
  104.     {
  105.         $this->specificLandingTemplates $specificLandingTemplates;
  106.         return $this;
  107.     }
  108. }