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

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