src/Entity/VerbalProcess.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VerbalProcessRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassVerbalProcessRepository::class)]
  9. class VerbalProcess
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $title null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $description null;
  19.     #[ORM\ManyToOne(inversedBy'verbalProcesses')]
  20.     #[ORM\JoinColumn(nullablefalse)]
  21.     private ?User $author null;
  22.     #[ORM\ManyToOne(inversedBy'verbalProcesses')]
  23.     private ?User $editor null;
  24.     public function __construct()
  25.     {
  26.         $this->verbalProcessDocuments = new ArrayCollection();
  27.     }
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getTitle(): ?string
  33.     {
  34.         return $this->title;
  35.     }
  36.     public function setTitle(?string $title): static
  37.     {
  38.         $this->title $title;
  39.         return $this;
  40.     }
  41.     public function getDescription(): ?string
  42.     {
  43.         return $this->description;
  44.     }
  45.     public function setDescription(?string $description): static
  46.     {
  47.         $this->description $description;
  48.         return $this;
  49.     }
  50.     public function getAuthor(): ?User
  51.     {
  52.         return $this->author;
  53.     }
  54.     public function setAuthor(?User $author): static
  55.     {
  56.         $this->author $author;
  57.         return $this;
  58.     }
  59.     public function getEditor(): ?User
  60.     {
  61.         return $this->editor;
  62.     }
  63.     public function setEditor(?User $editor): static
  64.     {
  65.         $this->editor $editor;
  66.         return $this;
  67.     }
  68.     public function getVerbalProcessCategory(): ?VerbalProcessCategory
  69.     {
  70.         return $this->verbalProcessCategory;
  71.     }
  72.     public function setVerbalProcessCategory(?VerbalProcessCategory $verbalProcessCategory): static
  73.     {
  74.         $this->verbalProcessCategory $verbalProcessCategory;
  75.         return $this;
  76.     }
  77. }