<?phpnamespace App\Entity;use Bluesquare\StorageBundle\Annotations\Storage;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\ConfidentialDocumentImageRepository") */class ConfidentialDocumentImage{ /** * @ORM\Id() * * @ORM\GeneratedValue() * * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Entity\ConfidentialDocument", inversedBy="images") */ private $confidential_document; /** * @ORM\Column(type="string", length=255) * * @Storage(name="main", mode="public", prefix="confidental_document_image") */ private $file; /** * @ORM\Column(type="string", length=255) */ private $type; /** * @ORM\Column(type="string", length=255) */ private $filename; public function getId(): ?int { return $this->id; } public function getFile(): ?string { return $this->file; } public function setFile(string $file): self { $this->file = $file; return $this; } public function getType(): ?string { return $this->type; } public function setType(string $type): self { $this->type = $type; return $this; } public function getFilename(): ?string { return $this->filename; } public function setFilename(string $filename): self { $this->filename = $filename; return $this; } /** * @return mixed */ public function getConfidentialDocument() { return $this->confidential_document; } /** * @param mixed $confidential_document * * @return ConfidentialDocumentImage */ public function setConfidentialDocument($confidential_document) { $this->confidential_document = $confidential_document; return $this; }}