src/Flexy/FrontBundle/Entity/FormData.php line 11

  1. <?php
  2. namespace App\Flexy\FrontBundle\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\Entity\FormDataRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassFormDataRepository::class)]
  7. #[ApiResource]
  8. class FormData
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(inversedBy'formDatas')]
  15.     private ?Form $form null;
  16.     #[ORM\Column(type"text")]
  17.     private ?string $data null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getForm(): ?Form
  23.     {
  24.         return $this->form;
  25.     }
  26.     public function setForm(?Form $form): static
  27.     {
  28.         $this->form $form;
  29.         return $this;
  30.     }
  31.     /**
  32.      * Get the value of data
  33.      */ 
  34.     public function getData()
  35.     {
  36.         return $this->data;
  37.     }
  38.     /**
  39.      * Set the value of data
  40.      *
  41.      * @return  self
  42.      */ 
  43.     public function setData($data)
  44.     {
  45.         $this->data $data;
  46.         return $this;
  47.     }
  48. }