UsingTrait.php 719 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Blameable\Fixture\Entity;
  3. use Gedmo\Blameable\Traits\BlameableEntity;
  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 Blameable behavior
  13. * updates createdAt, updatedAt fields
  14. */
  15. use BlameableEntity;
  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. }