src/Entity/ConfidentialDocumentImage.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Bluesquare\StorageBundle\Annotations\Storage;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\ConfidentialDocumentImageRepository")
  7.  */
  8. class ConfidentialDocumentImage
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      *
  13.      * @ORM\GeneratedValue()
  14.      *
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity="App\Entity\ConfidentialDocument", inversedBy="images")
  20.      */
  21.     private $confidential_document;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      *
  25.      * @Storage(name="main", mode="public", prefix="confidental_document_image")
  26.      */
  27.     private $file;
  28.     /**
  29.      * @ORM\Column(type="string", length=255)
  30.      */
  31.     private $type;
  32.     /**
  33.      * @ORM\Column(type="string", length=255)
  34.      */
  35.     private $filename;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getFile(): ?string
  41.     {
  42.         return $this->file;
  43.     }
  44.     public function setFile(string $file): self
  45.     {
  46.         $this->file $file;
  47.         return $this;
  48.     }
  49.     public function getType(): ?string
  50.     {
  51.         return $this->type;
  52.     }
  53.     public function setType(string $type): self
  54.     {
  55.         $this->type $type;
  56.         return $this;
  57.     }
  58.     public function getFilename(): ?string
  59.     {
  60.         return $this->filename;
  61.     }
  62.     public function setFilename(string $filename): self
  63.     {
  64.         $this->filename $filename;
  65.         return $this;
  66.     }
  67.     /**
  68.      * @return mixed
  69.      */
  70.     public function getConfidentialDocument()
  71.     {
  72.         return $this->confidential_document;
  73.     }
  74.     /**
  75.      * @param mixed $confidential_document
  76.      *
  77.      * @return ConfidentialDocumentImage
  78.      */
  79.     public function setConfidentialDocument($confidential_document)
  80.     {
  81.         $this->confidential_document $confidential_document;
  82.         return $this;
  83.     }
  84. }