src/Modules/RecommendationVoucherForm/Entity/RecommendationVoucherFormField.php line 13

  1. <?php
  2. namespace App\Modules\RecommendationVoucherForm\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Table(name="recommendation_voucher_form_field")
  8.  * @ORM\Entity
  9.  */
  10. class RecommendationVoucherFormField
  11. {
  12.     /**
  13.      * @ORM\Column(type="bigint", options={"unsigned"=true}))
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue(strategy="AUTO")
  16.      */
  17.     private $id;
  18.     
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity="App\Modules\RecommendationVoucherForm\Entity\RecommendationVoucherForm", inversedBy="formFields")
  21.      * @ORM\JoinColumns({
  22.      *   @ORM\JoinColumn(name="id_recommendation_voucher_form", referencedColumnName="id", nullable=false, onDelete="CASCADE")
  23.      * })
  24.      */
  25.     private $form;
  26.     
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="name", type="string", length=255, nullable=false)
  31.      */
  32.     private $name;
  33.     
  34.     /**
  35.      * @var string
  36.      *
  37.      * @ORM\Column(name="value", type="string", length=255, nullable=false)
  38.      */
  39.     private $value;
  40.     public function getId(): ?string
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getName(): ?string
  45.     {
  46.         return $this->name;
  47.     }
  48.     public function setName(string $name): self
  49.     {
  50.         $this->name $name;
  51.         return $this;
  52.     }
  53.     public function getValue(): ?string
  54.     {
  55.         return $this->value;
  56.     }
  57.     public function setValue(string $value): self
  58.     {
  59.         $this->value $value;
  60.         return $this;
  61.     }
  62.     public function getForm(): ?RecommendationVoucherForm
  63.     {
  64.         return $this->form;
  65.     }
  66.     public function setForm(?RecommendationVoucherForm $form): self
  67.     {
  68.         $this->form $form;
  69.         return $this;
  70.     }
  71. }