src/Admin/Modules/Contract/Entity/ContractLeadParam.php line 12

  1. <?php
  2. namespace App\Admin\Modules\Contract\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="contract_lead_param", uniqueConstraints={@ORM\UniqueConstraint(columns={"id_contract_lead", "id_contract_lead_config_param"})}, indexes={@ORM\Index(columns={"value"})})
  7.  * @ORM\Entity
  8.  */
  9. class ContractLeadParam
  10. {
  11.     /**
  12.      * @var int
  13.      *
  14.      * @ORM\Column(type="bigint", options={"unsigned"=true}))
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */
  18.     protected $id;
  19.     
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity="App\Admin\Modules\Contract\Entity\ContractLead", inversedBy="params")
  22.      * @ORM\JoinColumns({
  23.      *   @ORM\JoinColumn(name="id_contract_lead", referencedColumnName="id", nullable=false, onDelete="CASCADE")
  24.      * })
  25.      */
  26.     private $lead;
  27.     
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity="App\Admin\Modules\Contract\Entity\ContractLeadConfigParam")
  30.      * @ORM\JoinColumns({
  31.      *   @ORM\JoinColumn(name="id_contract_lead_config_param", referencedColumnName="id", nullable=false, onDelete="CASCADE")
  32.      * })
  33.      */
  34.     private $configParam;
  35.     
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="value", type="string", length=255, nullable=true)
  40.      */
  41.     private $value;
  42.     public function getId(): ?string
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getValue(): ?string
  47.     {
  48.         return $this->value;
  49.     }
  50.     public function setValue(?string $value): self
  51.     {
  52.         $this->value $value;
  53.         return $this;
  54.     }
  55.     public function getLead(): ?ContractLead
  56.     {
  57.         return $this->lead;
  58.     }
  59.     public function setLead(?ContractLead $lead): self
  60.     {
  61.         $this->lead $lead;
  62.         return $this;
  63.     }
  64.     public function getConfigParam(): ?ContractLeadConfigParam
  65.     {
  66.         return $this->configParam;
  67.     }
  68.     public function setConfigParam(?ContractLeadConfigParam $configParam): self
  69.     {
  70.         $this->configParam $configParam;
  71.         return $this;
  72.     }
  73. }