<?phpnamespace App\Domain\Entity;use App\Shared\Domain\ApplicationCore\Interfaces\EntityInterface;use DateTime;use DateTimeInterface;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Uid\Uuid;use Symfony\Component\Validator\Constraints as Assert;use Vich\UploaderBundle\Mapping\Annotation as Vich;//#[Vich\Uploadable]class Documentacion implements EntityInterface{ private $field; private $tramiteKey; private ?string $filename = null; /** * @Assert\File( * maxSize = "20M", * mimeTypes = {"application/pdf"}, * mimeTypesMessage = "file_format {{ type }} {{ types }}", * uploadErrorMessage = "file_upload {{ limit }}" * ) */ #[Vich\UploadableField(mapping: 'upload', fileNameProperty: 'filename')] protected $filenameFile; private ?string $descripcion = null; private ?Uuid $id = null; private ?Entidad $entidad = null; private ?DateTimeInterface $createdAt; private ?DateTimeInterface $updatedAt; private ?DateTimeInterface $deletedAt; public function __toString(): string { return $this->descripcion??""; } public function getFilename(): ?string { return $this->filename; } public function setFilename(?string $filename): static { $this->filename = $filename; return $this; } public function getCreatedAt(): ?DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?DateTimeInterface $createdAt): static { $this->createdAt = $createdAt; return $this; } public function getDescripcion(): ?string { return $this->descripcion; } public function setDescripcion(?string $descripcion): static { $this->descripcion = $descripcion; return $this; } public function getId(): ?Uuid { return $this->id; } public function getEntidad(): ?Entidad { return $this->entidad; } public function setEntidad(?Entidad $entidad): static { $this->entidad = $entidad; return $this; } public function getUpdatedAt(): ?DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(DateTimeInterface $updatedAt): static { $this->updatedAt = $updatedAt; return $this; } public function getDeletedAt(): ?DateTimeInterface { return $this->deletedAt; } public function setDeletedAt(?DateTimeInterface $deletedAt): static { $this->deletedAt = $deletedAt; return $this; } /** * @return mixed */ public function getFilenameFile() { return $this->filenameFile; } /** * @param mixed $filenameFile * @return Documentacion */ public function setFilenameFile($filenameFile) { $this->filenameFile = $filenameFile; if (null !== $filenameFile) $this->updatedAt = new DateTime(); return $this; } public function getField(): ?string { return $this->field; } public function setField(?string $field): static { $this->field = $field; return $this; } public function getTramiteKey(): ?string { return $this->tramiteKey; } public function setTramiteKey(?string $tramiteKey): static { $this->tramiteKey = $tramiteKey; return $this; }}//class