src/Entity/FormFieldOption.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\FormFieldOptionRepository")
  8.  */
  9. class FormFieldOption
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="bigint")
  15.      */
  16.     private $id;
  17.     
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $value;
  22.     
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\FormField", inversedBy="formFieldOptions")
  25.      * @ORM\JoinColumn(name="form_field_id", referencedColumnName="id", onDelete="SET NULL")
  26.      */
  27.     private $formField;
  28.     
  29.     
  30.     public function __construct ()
  31.     {
  32.         $this->value "";
  33.     }
  34.     public function getId()
  35.     {
  36.         return $this->id;
  37.     }
  38.     
  39.     public function getValue(): ?string
  40.     {
  41.         return $this->value;
  42.     }
  43.     public function setValue(string $value null): self
  44.     {
  45.         $this->value $value $value "";
  46.         
  47.         return $this;
  48.     }
  49.     
  50.     public function getFormField(): ?FormField
  51.     {
  52.         return $this->formField;
  53.     }
  54.     
  55.     public function setFormField(?FormField $formField null): self
  56.     {
  57.         $this->formField $formField;
  58.         
  59.         return $this;
  60.     }
  61.     
  62.     public function __toString ()
  63.     {
  64.         return $this->value $this->value '';
  65.     }
  66.     
  67. }