<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'survey')]
#[ORM\Entity(repositoryClass: 'App\Entity\Repository\SurveyRepository')]
class Survey
{
#[ORM\Id]
#[ORM\Column(type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
private $id;
#[ORM\Column(type: 'string', nullable: true)]
private $survey_user;
#[ORM\Column(type: 'string', nullable: true)]
private $survey_url;
#[ORM\Column(type: 'string', nullable: true)]
private $type;
#[ORM\ManyToOne(targetEntity: 'App\Entity\User', inversedBy: 'survey')]
#[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id')]
private $user;
public function getId(): ?int
{
return $this->id;
}
public function getSurveyUser(): ?string
{
return $this->survey_user;
}
public function setSurveyUser(?string $survey_user): self
{
$this->survey_user = $survey_user;
return $this;
}
public function getSurveyUrl(): ?string
{
return $this->survey_url;
}
public function setSurveyUrl(?string $survey_url): self
{
$this->survey_url = $survey_url;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
}