src/Admin/Modules/Contract/Entity/ContractLeadConfigParam.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_config_param", uniqueConstraints={@ORM\UniqueConstraint(columns={"id_contract_lead_config", "name"})})
  7.  * @ORM\Entity
  8.  */
  9. class ContractLeadConfigParam
  10. {
  11.     const TYPE_TEXT 1;
  12.     const TYPE_INTEGER 2;
  13.     const TYPE_FLOAT 3;
  14.     const TYPE_EMAIL 4;
  15.     const TYPE_FIRST_NAME 100;
  16.     const TYPE_CONTACT_EMAIL 101;
  17.     const TYPE_CONTACT_PHONE 102;
  18.     /**
  19.      * @var int
  20.      *
  21.      * @ORM\Column(type="bigint", options={"unsigned"=true}))
  22.      * @ORM\Id
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      */
  25.     protected $id;
  26.     
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity="App\Admin\Modules\Contract\Entity\ContractLeadConfig", inversedBy="params")
  29.      * @ORM\JoinColumns({
  30.      *   @ORM\JoinColumn(name="id_contract_lead_config", referencedColumnName="id", nullable=false, onDelete="CASCADE")
  31.      * })
  32.      */
  33.     private $config;
  34.     
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="name", type="string", length=255, nullable=false)
  39.      */
  40.     private $name;
  41.     
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="type", type="smallint", nullable=false)
  46.      */
  47.     private $type;
  48.     
  49.     /**
  50.      * @var bool
  51.      *
  52.      * @ORM\Column(name="is_required", type="boolean", nullable=false)
  53.      */
  54.     private $isRequired;    
  55.     /**
  56.      * @var bool
  57.      *
  58.      * @ORM\Column(name="visible_on_list", type="boolean", nullable=false)
  59.      */
  60.     private $visibleOnList;
  61.     /**
  62.      * @var bool
  63.      *
  64.      * @ORM\Column(name="visible_in_application_form", type="boolean", nullable=false)
  65.      */
  66.     private $visibleInApplicationForm;
  67.     public function getId(): ?string
  68.     {
  69.         return $this->id;
  70.     }
  71.     public function getName(): ?string
  72.     {
  73.         return $this->name;
  74.     }
  75.     public function setName(string $name): self
  76.     {
  77.         $this->name $name;
  78.         return $this;
  79.     }
  80.     public function getConfig(): ?ContractLeadConfig
  81.     {
  82.         return $this->config;
  83.     }
  84.     public function setConfig(?ContractLeadConfig $config): self
  85.     {
  86.         $this->config $config;
  87.         return $this;
  88.     }
  89.     public function getType(): ?int
  90.     {
  91.         return $this->type;
  92.     }
  93.     public function setType(int $type): self
  94.     {
  95.         $this->type $type;
  96.         return $this;
  97.     }
  98.     public function getIsRequired(): ?bool
  99.     {
  100.         return $this->isRequired;
  101.     }
  102.     public function setIsRequired(bool $isRequired): self
  103.     {
  104.         $this->isRequired $isRequired;
  105.         return $this;
  106.     }
  107.     public function getVisibleOnList(): ?bool
  108.     {
  109.         return $this->visibleOnList;
  110.     }
  111.     public function setVisibleOnList(bool $visibleOnList): self
  112.     {
  113.         $this->visibleOnList $visibleOnList;
  114.         return $this;
  115.     }
  116.     public function getVisibleInApplicationForm(): ?bool
  117.     {
  118.         return $this->visibleInApplicationForm;
  119.     }
  120.     public function setVisibleInApplicationForm(bool $visibleInApplicationForm): self
  121.     {
  122.         $this->visibleInApplicationForm $visibleInApplicationForm;
  123.         return $this;
  124.     }    
  125. }