<?phpdeclare(strict_types=1);namespace App\Entity;use App\Repository\QuestionRepository;use Doctrine\ORM\Mapping as ORM;/** * Question. * * @ORM\Table(name="Question") * * @ORM\Entity(repositoryClass=QuestionRepository::class) */class Question{ /** * @var int * * @ORM\Column(name="id", type="integer") * * @ORM\Id * * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="token", type="string", length=255) */ private $token; /** * @var int * * @ORM\Column(name="surveyls_survey_id", type="integer") */ private $surveylsSurveyId; /** * @ORM\ManyToOne(targetEntity="Structure", inversedBy="questions") * * @ORM\JoinColumn(name="structure_id", referencedColumnName="id") */ private $structure; /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set token. * * @param string $token */ public function setToken($token): static { $this->token = $token; return $this; } /** * Get token. * * @return string */ public function getToken() { return $this->token; } /** * Set surveylsSurveyId. * * @param int $surveylsSurveyId */ public function setSurveylsSurveyId($surveylsSurveyId): static { $this->surveylsSurveyId = $surveylsSurveyId; return $this; } /** * Get surveylsSurveyId. * * @return int */ public function getSurveylsSurveyId() { return $this->surveylsSurveyId; } /** * Set structure. */ public function setStructure(?Structure $structure = null): static { $this->structure = $structure; return $this; } /** * Get structure. * * @return Structure */ public function getStructure() { return $this->structure; }}