src/Entity/Commentaire.php line 10
<?php
namespace App\Entity;
use App\Repository\CommentaireRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CommentaireRepository::class)]
class Commentaire
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $comment = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $datepubli = null;
#[ORM\Column]
private ?bool $valide = null;
#[ORM\ManyToOne(inversedBy: 'commentaires')]
private ?User $auteur = null;
#[ORM\ManyToOne(inversedBy: 'commentaires')]
private ?Protocole $protocole = null;
#[ORM\ManyToOne(inversedBy: 'commentaires')]
private ?Materiel $materiel = null;
public function getId(): ?int
{
return $this->id;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getDatepubli(): ?\DateTimeInterface
{
return $this->datepubli;
}
public function setDatepubli(\DateTimeInterface $datepubli): self
{
$this->datepubli = $datepubli;
return $this;
}
public function isValide(): ?bool
{
return $this->valide;
}
public function setValide(bool $valide): self
{
$this->valide = $valide;
return $this;
}
public function getAuteur(): ?User
{
return $this->auteur;
}
public function setAuteur(?User $auteur): self
{
$this->auteur = $auteur;
return $this;
}
public function getProtocole(): ?Protocole
{
return $this->protocole;
}
public function setProtocole(?Protocole $protocole): self
{
$this->protocole = $protocole;
return $this;
}
public function getMateriel(): ?Materiel
{
return $this->materiel;
}
public function setMateriel(?Materiel $materiel): self
{
$this->materiel = $materiel;
return $this;
}
}