src/Entity/WebListParameter.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\WebListParameterRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity (repositoryClass=WebListParameterRepository::class)
  7.  */
  8. class WebListParameter
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=WebList::class, inversedBy="parameters")
  18.      * @ORM\JoinColumn(nullable=true)
  19.      */
  20.     private $webList;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=ListModel::class, inversedBy="parameters")
  23.      * @ORM\JoinColumn(nullable=true)
  24.      */
  25.     private $listModel;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=BridgeParameter::class, inversedBy="webListParameters", cascade={"persist"})
  28.      * @ORM\JoinColumn(nullable=false)
  29.      */
  30.     private $bridgeParameter;
  31.     /**
  32.      * @ORM\Column(type="json", nullable=true)
  33.      */
  34.     private $value = [];
  35.     public function getId() : ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getWebList() : ?WebList
  40.     {
  41.         return $this->webList;
  42.     }
  43.     public function setWebList(?WebList $webList) : self
  44.     {
  45.         $this->webList $webList;
  46.         return $this;
  47.     }
  48.     public function getListModel() : ?ListModel
  49.     {
  50.         return $this->listModel;
  51.     }
  52.     public function setListModel(?ListModel $listModel) : self
  53.     {
  54.         $this->listModel $listModel;
  55.         return $this;
  56.     }
  57.     public function getBridgeParameter() : ?BridgeParameter
  58.     {
  59.         return $this->bridgeParameter;
  60.     }
  61.     public function setBridgeParameter(?BridgeParameter $bridgeParameter) : self
  62.     {
  63.         $this->bridgeParameter $bridgeParameter;
  64.         return $this;
  65.     }
  66.     public function getValue() : ?array
  67.     {
  68.         return $this->value;
  69.     }
  70.     public function setValue(?array $value) : self
  71.     {
  72.         $this->value $value;
  73.         return $this;
  74.     }
  75.     public function getParameterKey() : string
  76.     {
  77.         return $this->getBridgeParameter()->getKey();
  78.     }
  79. }