Guest User

Untitled

a guest
Mar 19th, 2015
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Application\Entity;
  4.  
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * Entity Class representing a Post of our Zend Framework 2 Blogging Application
  8. *
  9. * @ORM\Entity
  10. * @ORM\Table(name="posts")
  11. * @property int $id
  12. * @property string $title
  13. * @property string $text
  14. */
  15. class User {
  16.  
  17. /**
  18. * Primary Identifier
  19. *
  20. * @ORM\Id
  21. * @ORM\Column(type="integer")
  22. * @ORM\GeneratedValue(strategy="AUTO")
  23. * @var integer
  24. * @access protected
  25. */
  26.  
  27. protected $id;
  28.  
  29. /**
  30. * Title of our Blog Post
  31. *
  32. * @ORM\Column(type="string")
  33. * @var string
  34. * @access protected
  35. */
  36.  
  37. protected $fullName;
  38.  
  39. /**
  40. * Sets the Identifier
  41. *
  42. * @param int $id
  43. * @access public
  44. * @return Post
  45. */
  46.  
  47. public function setId($id) {
  48. $this->id = $id;
  49. return $this->id;
  50. }
  51.  
  52. /**
  53. * Returns the Identifier
  54. *
  55. * @access public
  56. * @return int
  57. */
  58.  
  59. public function getId() {
  60. return $this->id;
  61. }
  62.  
  63. /**
  64. * Sets the Title
  65. *
  66. * @param string $title
  67. * @access public
  68. * @return Post
  69. */
  70.  
  71. public function setFullName($fullName) {
  72. $this->fullName = $fullName;
  73. return $this->fullName;
  74. }
  75.  
  76. /**
  77. * Returns the Title
  78. *
  79. * @access public
  80. * @return string
  81. */
  82.  
  83. public function getFullName() {
  84. return $this->fullName;
  85. }
  86.  
  87.  
  88. }
Advertisement
Add Comment
Please, Sign In to add comment