<?php
namespace App\Entity;
use App\Repository\ProvisionalExaminationRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ProvisionalExaminationRepository::class), ORM\Table(name: 'provisional_examinations')]
class ProvisionalExamination implements \Stringable
{
#[ORM\Id, ORM\GeneratedValue, ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'text')]
private $name;
#[ORM\ManyToOne(targetEntity: Symptom::class), ORM\JoinColumn(nullable: false)]
private $symptom;
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 getSymptom(): ?Symptom
{
return $this->symptom;
}
public function setSymptom(Symptom $symptom): self
{
$this->symptom = $symptom;
return $this;
}
public function __toString(): string
{
return $this->getName();
}
}