Image.php 835 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace Test\Fixture\Document;
  3. use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
  4. /**
  5. * @ODM\Document
  6. */
  7. class Image
  8. {
  9. /**
  10. * @ODM\Id
  11. */
  12. private $id;
  13. /**
  14. * @ODM\Field
  15. */
  16. private $title;
  17. /**
  18. * @ODM\File
  19. */
  20. private $file;
  21. /**
  22. * Set file.
  23. *
  24. * @param integer $file
  25. * @return Image
  26. */
  27. public function setFile($file)
  28. {
  29. $this->file = $file;
  30. return $this;
  31. }
  32. /**
  33. * Get file.
  34. *
  35. * @return integer
  36. */
  37. public function getFile()
  38. {
  39. return $this->file;
  40. }
  41. public function getId()
  42. {
  43. return $this->id;
  44. }
  45. public function setTitle($title)
  46. {
  47. $this->title = $title;
  48. }
  49. public function getTitle()
  50. {
  51. return $this->title;
  52. }
  53. }