WithoutInterface.php 932 B

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