src/Entity/DocDemandeService.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DocDemandeServiceRepository;
  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(repositoryClassDocDemandeServiceRepository::class)]
  9. class DocDemandeService
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $fileName null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $type null;
  19.     #[ORM\ManyToOne(inversedBy'docDemande')]
  20.     private ?User $user null;
  21.     #[ORM\Column(nullablefalse)]
  22.     private ?bool $interne false;
  23.     #[ORM\Column(nullablefalse)]
  24.     private ?bool $externe false;
  25.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  26.     private ?\DateTimeInterface $createdAt null;
  27.     #[ORM\Column(nullabletrue)]
  28.     private ?int $createdBy null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?bool $deleted null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?int $deletedBy null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?bool $valid null;
  35.     #[ORM\Column(nullabletrue)]
  36.     private ?int $validBy null;
  37.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  38.     private ?\DateTimeInterface $validAt null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $title null;
  41.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  42.     private ?string $description null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $originalFileName null;
  45.     #[ORM\ManyToOne(inversedBy'docDemandeService')]
  46.     private ?DemandeAffectation $demandeAffectation null;
  47.     #[ORM\ManyToOne]
  48.     private ?DocumentCategory $documentCategory null;
  49.     #[ORM\Column(nullabletrue)]
  50.     private ?int $etat null;
  51.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  52.     private ?string $motifRefus null;
  53.     public function __construct()
  54.     {
  55.         $this->createdAt = new \DateTime();
  56.     }
  57.     public function getId(): ?int
  58.     {
  59.         return $this->id;
  60.     }
  61.     public function getFileName(): ?string
  62.     {
  63.         return $this->fileName;
  64.     }
  65.     public function setFileName(?string $fileName): self
  66.     {
  67.         $this->fileName $fileName;
  68.         return $this;
  69.     }
  70.     public function getType(): ?string
  71.     {
  72.         return $this->type;
  73.     }
  74.     public function setType(?string $type): self
  75.     {
  76.         $this->type $type;
  77.         return $this;
  78.     }
  79.     public function getUser(): ?User
  80.     {
  81.         return $this->user;
  82.     }
  83.     public function setUser(?User $user): self
  84.     {
  85.         $this->user $user;
  86.         return $this;
  87.     }
  88.     public function isInterne(): ?bool
  89.     {
  90.         return $this->interne;
  91.     }
  92.     public function setInterne(?bool $interne false): self
  93.     {
  94.         $this->interne $interne;
  95.         return $this;
  96.     }
  97.     public function isExterne(): ?bool
  98.     {
  99.         return $this->externe;
  100.     }
  101.     public function setExterne(?bool $externe false): self
  102.     {
  103.         $this->externe $externe;
  104.         return $this;
  105.     }
  106.     public function getCreatedAt(): ?\DateTimeInterface
  107.     {
  108.         return $this->createdAt;
  109.     }
  110.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  111.     {
  112.         $this->createdAt $createdAt;
  113.         return $this;
  114.     }
  115.     public function getCreatedBy(): ?int
  116.     {
  117.         return $this->createdBy;
  118.     }
  119.     public function setCreatedBy(?int $createdBy): self
  120.     {
  121.         $this->createdBy $createdBy;
  122.         return $this;
  123.     }
  124.     public function isDeleted(): ?bool
  125.     {
  126.         return $this->deleted;
  127.     }
  128.     public function setDeleted(?bool $deleted): self
  129.     {
  130.         $this->deleted $deleted;
  131.         return $this;
  132.     }
  133.     public function getDeletedBy(): ?int
  134.     {
  135.         return $this->deletedBy;
  136.     }
  137.     public function setDeletedBy(?int $deletedBy): self
  138.     {
  139.         $this->deletedBy $deletedBy;
  140.         return $this;
  141.     }
  142.     public function isValid(): ?bool
  143.     {
  144.         return $this->valid;
  145.     }
  146.     public function setValid(?bool $valid): self
  147.     {
  148.         $this->valid $valid;
  149.         return $this;
  150.     }
  151.     public function getValidBy(): ?int
  152.     {
  153.         return $this->validBy;
  154.     }
  155.     public function setValidBy(?int $validBy): self
  156.     {
  157.         $this->validBy $validBy;
  158.         return $this;
  159.     }
  160.     public function getValidAt(): ?\DateTimeInterface
  161.     {
  162.         return $this->validAt;
  163.     }
  164.     public function setValidAt(?\DateTimeInterface $validAt): self
  165.     {
  166.         $this->validAt $validAt;
  167.         return $this;
  168.     }
  169.     public function getTitle(): ?string
  170.     {
  171.         return $this->title;
  172.     }
  173.     public function setTitle(?string $title): self
  174.     {
  175.         $this->title $title;
  176.         return $this;
  177.     }
  178.     public function getDescription(): ?string
  179.     {
  180.         return $this->description;
  181.     }
  182.     public function setDescription(?string $description): self
  183.     {
  184.         $this->description $description;
  185.         return $this;
  186.     }
  187.     public function getOriginalFileName(): ?string
  188.     {
  189.         return $this->originalFileName;
  190.     }
  191.     public function setOriginalFileName(?string $originalFileName): self
  192.     {
  193.         $this->originalFileName $originalFileName;
  194.         return $this;
  195.     }
  196.     public function getDemandeAffectation(): ?DemandeAffectation
  197.     {
  198.         return $this->demandeAffectation;
  199.     }
  200.     public function setDemandeAffectation(?DemandeAffectation $demandeAffectation): self
  201.     {
  202.         $this->demandeAffectation $demandeAffectation;
  203.         return $this;
  204.     }
  205.     public function getDocumentCategory(): ?DocumentCategory
  206.     {
  207.         return $this->documentCategory;
  208.     }
  209.     public function setDocumentCategory(?DocumentCategory $documentCategory): self
  210.     {
  211.         $this->documentCategory $documentCategory;
  212.         return $this;
  213.     }
  214.     public function getEtat(): ?int
  215.     {
  216.         return $this->etat;
  217.     }
  218.     public function setEtat(?int $etat): self
  219.     {
  220.         $this->etat $etat;
  221.         return $this;
  222.     }
  223.     public function getMotifRefus(): ?string
  224.     {
  225.         return $this->motifRefus;
  226.     }
  227.     public function setMotifRefus(?string $motifRefus): self
  228.     {
  229.         $this->motifRefus $motifRefus;
  230.         return $this;
  231.     }
  232. }