src/Flexy/FrontBundle/Entity/FormData.php line 11
<?php
namespace App\Flexy\FrontBundle\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\Entity\FormDataRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FormDataRepository::class)]
#[ApiResource]
class FormData
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'formDatas')]
private ?Form $form = null;
#[ORM\Column(type: "text")]
private ?string $data = null;
public function getId(): ?int
{
return $this->id;
}
public function getForm(): ?Form
{
return $this->form;
}
public function setForm(?Form $form): static
{
$this->form = $form;
return $this;
}
/**
* Get the value of data
*/
public function getData()
{
return $this->data;
}
/**
* Set the value of data
*
* @return self
*/
public function setData($data)
{
$this->data = $data;
return $this;
}
}