<?phpnamespace App\Entity;use App\Repository\DocDemandeServiceRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: DocDemandeServiceRepository::class)]class DocDemandeService{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] private ?string $fileName = null; #[ORM\Column(length: 255, nullable: true)] private ?string $type = null; #[ORM\ManyToOne(inversedBy: 'docDemande')] private ?User $user = null; #[ORM\Column(nullable: false)] private ?bool $interne = false; #[ORM\Column(nullable: false)] private ?bool $externe = false; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $createdAt = null; #[ORM\Column(nullable: true)] private ?int $createdBy = null; #[ORM\Column(nullable: true)] private ?bool $deleted = null; #[ORM\Column(nullable: true)] private ?int $deletedBy = null; #[ORM\Column(nullable: true)] private ?bool $valid = null; #[ORM\Column(nullable: true)] private ?int $validBy = null; #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] private ?\DateTimeInterface $validAt = null; #[ORM\Column(length: 255, nullable: true)] private ?string $title = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $description = null; #[ORM\Column(length: 255, nullable: true)] private ?string $originalFileName = null; #[ORM\ManyToOne(inversedBy: 'docDemandeService')] private ?DemandeAffectation $demandeAffectation = null; #[ORM\ManyToOne] private ?DocumentCategory $documentCategory = null; #[ORM\Column(nullable: true)] private ?int $etat = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $motifRefus = null; public function __construct() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getFileName(): ?string { return $this->fileName; } public function setFileName(?string $fileName): self { $this->fileName = $fileName; return $this; } public function getType(): ?string { return $this->type; } public function setType(?string $type): self { $this->type = $type; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function isInterne(): ?bool { return $this->interne; } public function setInterne(?bool $interne = false): self { $this->interne = $interne; return $this; } public function isExterne(): ?bool { return $this->externe; } public function setExterne(?bool $externe = false): self { $this->externe = $externe; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getCreatedBy(): ?int { return $this->createdBy; } public function setCreatedBy(?int $createdBy): self { $this->createdBy = $createdBy; return $this; } public function isDeleted(): ?bool { return $this->deleted; } public function setDeleted(?bool $deleted): self { $this->deleted = $deleted; return $this; } public function getDeletedBy(): ?int { return $this->deletedBy; } public function setDeletedBy(?int $deletedBy): self { $this->deletedBy = $deletedBy; return $this; } public function isValid(): ?bool { return $this->valid; } public function setValid(?bool $valid): self { $this->valid = $valid; return $this; } public function getValidBy(): ?int { return $this->validBy; } public function setValidBy(?int $validBy): self { $this->validBy = $validBy; return $this; } public function getValidAt(): ?\DateTimeInterface { return $this->validAt; } public function setValidAt(?\DateTimeInterface $validAt): self { $this->validAt = $validAt; return $this; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $title): self { $this->title = $title; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getOriginalFileName(): ?string { return $this->originalFileName; } public function setOriginalFileName(?string $originalFileName): self { $this->originalFileName = $originalFileName; return $this; } public function getDemandeAffectation(): ?DemandeAffectation { return $this->demandeAffectation; } public function setDemandeAffectation(?DemandeAffectation $demandeAffectation): self { $this->demandeAffectation = $demandeAffectation; return $this; } public function getDocumentCategory(): ?DocumentCategory { return $this->documentCategory; } public function setDocumentCategory(?DocumentCategory $documentCategory): self { $this->documentCategory = $documentCategory; return $this; } public function getEtat(): ?int { return $this->etat; } public function setEtat(?int $etat): self { $this->etat = $etat; return $this; } public function getMotifRefus(): ?string { return $this->motifRefus; } public function setMotifRefus(?string $motifRefus): self { $this->motifRefus = $motifRefus; return $this; }}