File.php 793 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace Translatable\Fixture;
  3. /**
  4. * @Entity
  5. * @InheritanceType("JOINED")
  6. * @DiscriminatorColumn(name="discriminator", type="string")
  7. * @DiscriminatorMap({"file" = "File", "image" = "Image"})
  8. */
  9. class File
  10. {
  11. /**
  12. * @Id
  13. * @GeneratedValue
  14. * @Column(type="integer")
  15. */
  16. private $id;
  17. /**
  18. * @gedmo:Translatable
  19. * @Column(length=128)
  20. */
  21. private $name;
  22. /**
  23. * @Column(type="integer")
  24. */
  25. private $size;
  26. public function setName($name)
  27. {
  28. $this->name = $name;
  29. }
  30. public function getName()
  31. {
  32. return $this->name;
  33. }
  34. public function setSize($size)
  35. {
  36. $this->size = $size;
  37. }
  38. public function getSize()
  39. {
  40. return $this->size;
  41. }
  42. }