<?phpnamespace App\Entity;use App\Repository\DocumentCategoryAttachmentRepository;use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=DocumentCategoryAttachmentRepository::class) * @Auditable() */class DocumentCategoryAttachment{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Attachment::class) * @ORM\JoinColumn(nullable=false) */ private $attachment; /** * @ORM\ManyToOne(targetEntity=DocumentCategory::class) * @ORM\JoinColumn(nullable=false) */ private $documentCategory; /** * @ORM\Column(type="boolean") */ private $isDeleted; /** * @ORM\Column(type="datetime", nullable=true) */ private $dateCreate; /** * @ORM\Column(type="datetime", nullable=true) */ private $dateUpdate; /** * @ORM\Column(type="boolean", nullable=true) */ private $isMandatory; /** * @ORM\ManyToOne(targetEntity=Users::class) */ private $userCreate; /** * @ORM\ManyToOne(targetEntity=Users::class) */ private $userUpdate; public function getId(): ?int { return $this->id; } public function getAttachment(): ?Attachment { return $this->attachment; } public function setAttachment(?Attachment $attachment): self { $this->attachment = $attachment; return $this; } public function getDocumentCategory(): ?DocumentCategory { return $this->documentCategory; } public function setDocumentCategory(?DocumentCategory $documentCategory): self { $this->documentCategory = $documentCategory; return $this; } public function getIsDeleted(): ?bool { return $this->isDeleted; } public function setIsDeleted(bool $isDeleted): self { $this->isDeleted = $isDeleted; return $this; } public function getDateCreate(): ?\DateTimeInterface { return $this->dateCreate; } public function setDateCreate(?\DateTimeInterface $dateCreate): self { $this->dateCreate = $dateCreate; return $this; } public function getDateUpdate(): ?\DateTimeInterface { return $this->dateUpdate; } public function setDateUpdate(?\DateTimeInterface $dateUpdate): self { $this->dateUpdate = $dateUpdate; return $this; } public function getIsMandatory(): ?bool { return $this->isMandatory; } public function setIsMandatory(?bool $isMandatory): self { $this->isMandatory = $isMandatory; return $this; } public function getUserCreate(): ?Users { return $this->userCreate; } public function setUserCreate(?Users $userCreate): self { $this->userCreate = $userCreate; return $this; } public function getUserUpdate(): ?Users { return $this->userUpdate; } public function setUserUpdate(?Users $userUpdate): self { $this->userUpdate = $userUpdate; return $this; }}