<?php
namespace App\Entity;
use App\Repository\SatisfactionRepository;
use App\Traits\DateTrait;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=SatisfactionRepository::class)
*/
class Satisfaction
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $name;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $question1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $question2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $question3;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $question4;
/**
* @ORM\Column(type="string", length=255)
*/
private $email;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $message;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="satisfactions")
*/
private $user;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $stars;
use DateTrait;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName( ?string $name ): self
{
$this->name = $name;
return $this;
}
public function getQuestion1(): ?string
{
return $this->question1;
}
public function setQuestion1( ?string $question1 ): self
{
$this->question1 = $question1;
return $this;
}
public function getQuestion2(): ?string
{
return $this->question2;
}
public function setQuestion2( ?string $question2 ): self
{
$this->question2 = $question2;
return $this;
}
public function getQuestion3(): ?string
{
return $this->question3;
}
public function setQuestion3( ?string $question3 ): self
{
$this->question3 = $question3;
return $this;
}
public function getQuestion4(): ?string
{
return $this->question4;
}
public function setQuestion4( ?string $question4 ): self
{
$this->question4 = $question4;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail( string $email ): self
{
$this->email = $email;
return $this;
}
public function getMessage(): ?string
{
return $this->message;
}
public function setMessage( ?string $message ): self
{
$this->message = $message;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser( ?User $user ): self
{
$this->user = $user;
return $this;
}
public function getStars(): ?int
{
return $this->stars;
}
public function setStars( ?int $stars ): self
{
$this->stars = $stars;
return $this;
}
}