Fortune.php 963 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. namespace Skamander\BenchmarkBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. * @ORM\Table(name="Fortune")
  7. */
  8. class Fortune
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\Column(type="integer")
  13. */
  14. public $id;
  15. /**
  16. * @ORM\Column(type="string")
  17. */
  18. public $message;
  19. /**
  20. * Set id
  21. *
  22. * @param integer $id
  23. * @return Fortune
  24. */
  25. public function setId($id)
  26. {
  27. $this->id = $id;
  28. return $this;
  29. }
  30. /**
  31. * Get id
  32. *
  33. * @return integer
  34. */
  35. public function getId()
  36. {
  37. return $this->id;
  38. }
  39. /**
  40. * Set message
  41. *
  42. * @param string $message
  43. * @return Fortune
  44. */
  45. public function setMessage($message)
  46. {
  47. $this->message = $message;
  48. return $this;
  49. }
  50. /**
  51. * Get message
  52. *
  53. * @return string
  54. */
  55. public function getMessage()
  56. {
  57. return $this->message;
  58. }
  59. }