MappedSupperClass.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. namespace Timestampable\Fixture;
  3. /**
  4. * @MappedSuperclass
  5. */
  6. class MappedSupperClass
  7. {
  8. /**
  9. * @var integer $id
  10. *
  11. * @Column(name="id", type="integer")
  12. * @Id
  13. * @GeneratedValue(strategy="AUTO")
  14. */
  15. protected $id;
  16. /**
  17. * @var string $locale
  18. *
  19. * @gedmo:Locale
  20. */
  21. protected $locale;
  22. /**
  23. * @var string $title
  24. *
  25. * @gedmo:Translatable
  26. * @Column(name="name", type="string", length=255)
  27. */
  28. protected $name;
  29. /**
  30. * @var \DateTime $createdAt
  31. *
  32. * @Column(name="created_at", type="datetime")
  33. * @gedmo:Timestampable(on="create")
  34. */
  35. protected $createdAt;
  36. /**
  37. * Get id
  38. *
  39. * @return integer $id
  40. * @codeCoverageIgnore
  41. */
  42. public function getId()
  43. {
  44. return $this->id;
  45. }
  46. /**
  47. * Set name
  48. *
  49. * @param string $name
  50. */
  51. public function setName($name)
  52. {
  53. $this->name = $name;
  54. }
  55. /**
  56. * Get name
  57. *
  58. * @return string $name
  59. */
  60. public function getName()
  61. {
  62. return $this->name;
  63. }
  64. /**
  65. * Get createdAt
  66. *
  67. * @return \DateTime $createdAt
  68. */
  69. public function getCreatedAt()
  70. {
  71. return $this->createdAt;
  72. }
  73. }