src/Entity/DemandeNote.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DemandeNoteRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  7. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  8. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  9. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  10. #[ORM\Entity(repositoryClassDemandeNoteRepository::class)]
  11. class DemandeNote implements BlameableInterfaceTimestampableInterface
  12. {
  13.     use BlameableTrait;
  14.     use TimestampableTrait;
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue]
  17.     #[ORM\Column]
  18.     private ?int $id null;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $description null;
  21.     #[ORM\ManyToOne(inversedBy'demandeNotes')]
  22.     #[ORM\JoinColumn(nullablefalse)]
  23.     private ?DemandeService $demande null;
  24.     #[ORM\Column]
  25.     private ?bool $isPublic null;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getDescription(): ?string
  31.     {
  32.         return $this->description;
  33.     }
  34.     public function setDescription(string $description): self
  35.     {
  36.         $this->description $description;
  37.         return $this;
  38.     }
  39.     public function getDemande(): ?DemandeService
  40.     {
  41.         return $this->demande;
  42.     }
  43.     public function setDemande(?DemandeService $demande): self
  44.     {
  45.         $this->demande $demande;
  46.         return $this;
  47.     }
  48.     public function isIsPublic(): ?bool
  49.     {
  50.         return $this->isPublic;
  51.     }
  52.     public function setIsPublic(bool $isPublic): self
  53.     {
  54.         $this->isPublic $isPublic;
  55.         return $this;
  56.     }
  57. }