vendor/vich/uploader-bundle/src/Entity/File.php line 10

Open in your IDE?
  1. <?php
  2. namespace Vich\UploaderBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Embeddable
  6. */
  7. class File
  8. {
  9. /**
  10. * @ORM\Column(name="name", nullable=true)
  11. */
  12. protected $name;
  13. /**
  14. * @ORM\Column(name="original_name", nullable=true)
  15. */
  16. protected $originalName;
  17. /**
  18. * @ORM\Column(name="mime_type", nullable=true)
  19. */
  20. protected $mimeType;
  21. /**
  22. * @ORM\Column(name="size", type="integer", nullable=true)
  23. */
  24. protected $size;
  25. /**
  26. * @ORM\Column(name="dimensions", type="simple_array", nullable=true)
  27. */
  28. protected $dimensions;
  29. public function getName(): ?string
  30. {
  31. return $this->name;
  32. }
  33. public function setName(?string $name): void
  34. {
  35. $this->name = $name;
  36. }
  37. public function getOriginalName(): ?string
  38. {
  39. return $this->originalName;
  40. }
  41. public function setOriginalName(?string $originalName): void
  42. {
  43. $this->originalName = $originalName;
  44. }
  45. public function getMimeType(): ?string
  46. {
  47. return $this->mimeType;
  48. }
  49. public function setMimeType(?string $mimeType): void
  50. {
  51. $this->mimeType = $mimeType;
  52. }
  53. public function getSize(): ?int
  54. {
  55. return $this->size;
  56. }
  57. public function setSize(?int $size): void
  58. {
  59. $this->size = $size;
  60. }
  61. public function getDimensions(): ?array
  62. {
  63. return $this->dimensions;
  64. }
  65. public function setDimensions(?array $dimensions): void
  66. {
  67. $this->dimensions = $dimensions;
  68. }
  69. }