<?php
namespace App\Entity;
use App\Repository\ReponseRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ReponseRepository::class)]
class Reponse
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(nullable: true)]
private ?int $quantity = null;
#[ORM\ManyToOne(inversedBy: 'reponses')]
private ?Question $question = null;
#[ORM\Column]
private ?bool $deleted = null;
#[ORM\Column(nullable: true)]
private ?int $minimalQuantity = null;
#[ORM\ManyToOne(inversedBy: 'reponses')]
private ?Session $session = null;
public function getId(): ?int
{
return $this->id;
}
public function getQuantity(): ?int
{
return $this->quantity;
}
public function setQuantity(?int $quantity): static
{
$this->quantity = $quantity;
return $this;
}
public function getQuestion(): ?Question
{
return $this->question;
}
public function setQuestion(?Question $question): static
{
$this->question = $question;
return $this;
}
public function isDeleted(): ?bool
{
return $this->deleted;
}
public function setDeleted(bool $deleted): static
{
$this->deleted = $deleted;
return $this;
}
public function getMinimalQuantity(): ?int
{
return $this->minimalQuantity;
}
public function setMinimalQuantity(?int $minimalQuantity): static
{
$this->minimalQuantity = $minimalQuantity;
return $this;
}
public function getSession(): ?Session
{
return $this->session;
}
public function setSession(?Session $session): static
{
$this->session = $session;
return $this;
}
}