UsingTrait.php 732 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Timestampable\Fixture;
  3. use Gedmo\Timestampable\Traits\TimestampableEntity;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity
  8. */
  9. class UsingTrait
  10. {
  11. /**
  12. * Hook timestampable behavior
  13. * updates createdAt, updatedAt fields
  14. */
  15. use TimestampableEntity;
  16. /**
  17. * @ORM\Id
  18. * @ORM\GeneratedValue
  19. * @ORM\Column(type="integer")
  20. */
  21. private $id;
  22. /**
  23. * @ORM\Column(length=128)
  24. */
  25. private $title;
  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. }