WithoutInterface.php 851 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace Timestampable\Fixture;
  3. /**
  4. * @Entity
  5. */
  6. class WithoutInterface
  7. {
  8. /** @Id @GeneratedValue @Column(type="integer") */
  9. private $id;
  10. /**
  11. * @Column(type="string", length=128)
  12. */
  13. private $title;
  14. /**
  15. * @gedmo:Timestampable(on="create")
  16. * @Column(type="date")
  17. */
  18. private $created;
  19. /**
  20. * @Column(type="datetime")
  21. * @gedmo:Timestampable(on="update")
  22. */
  23. private $updated;
  24. public function getId()
  25. {
  26. return $this->id;
  27. }
  28. public function setTitle($title)
  29. {
  30. $this->title = $title;
  31. }
  32. public function getTitle()
  33. {
  34. return $this->title;
  35. }
  36. public function getCreated()
  37. {
  38. return $this->created;
  39. }
  40. public function getUpdated()
  41. {
  42. return $this->updated;
  43. }
  44. }