<?php
namespace App\Entity;
use App\Repository\DemandeNoteRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
#[ORM\Entity(repositoryClass: DemandeNoteRepository::class)]
class DemandeNote implements BlameableInterface, TimestampableInterface
{
use BlameableTrait;
use TimestampableTrait;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $description = null;
#[ORM\ManyToOne(inversedBy: 'demandeNotes')]
#[ORM\JoinColumn(nullable: false)]
private ?DemandeService $demande = null;
#[ORM\Column]
private ?bool $isPublic = null;
public function getId(): ?int
{
return $this->id;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(string $description): self
{
$this->description = $description;
return $this;
}
public function getDemande(): ?DemandeService
{
return $this->demande;
}
public function setDemande(?DemandeService $demande): self
{
$this->demande = $demande;
return $this;
}
public function isIsPublic(): ?bool
{
return $this->isPublic;
}
public function setIsPublic(bool $isPublic): self
{
$this->isPublic = $isPublic;
return $this;
}
}