Guest User

Untitled

a guest
Jan 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. <?php
  2. namespace Map\VideoBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5.  
  6. /**
  7. * @ORM\Entity
  8. */
  9. class Acteur
  10. {
  11. /**
  12. * @ORM\GeneratedValue
  13. * @ORM\Id
  14. * @ORM\Column(type="integer")
  15. */
  16. private $id;
  17.  
  18. /**
  19. * @ORM\Column(type="string",length="255")
  20. * @Assert\NotBlank()
  21. * @Assert\MinLength(3)
  22. */
  23. private $nom;
  24.  
  25. /**
  26. * @ORM\Column(type="string",length="255")
  27. * @Assert\NotBlank()
  28. * @Assert\MinLength(3)
  29. */
  30. private $prenom;
  31.  
  32. /**
  33. * @ORM\Column(type="date")
  34. * @Assert\NotBlank()
  35. */
  36. private $dateNaissance;
  37.  
  38. /**
  39. * @ORM\Column(type="string",length="1")
  40. * @Assert\NotBlank()
  41. * @Assert\Choice(choices = {"M", "F"})
  42. */
  43. private $sexe;
  44.  
  45. /**
  46. * Get id
  47. *
  48. * @return integer
  49. */
  50. public function getId()
  51. {
  52. return $this->id;
  53. }
  54.  
  55. /**
  56. * Set nom
  57. *
  58. * @param string $nom
  59. */
  60. public function setNom($nom)
  61. {
  62. $this->nom = $nom;
  63. }
  64.  
  65. /**
  66. * Get nom
  67. *
  68. * @return string
  69. */
  70. public function getNom()
  71. {
  72. return $this->nom;
  73. }
  74.  
  75. /**
  76. * Set prenom
  77. *
  78. * @param string $prenom
  79. */
  80. public function setPrenom($prenom)
  81. {
  82. $this->prenom = $prenom;
  83. }
  84.  
  85. /**
  86. * Get prenom
  87. *
  88. * @return string
  89. */
  90. public function getPrenom()
  91. {
  92. return $this->prenom;
  93. }
  94.  
  95. /**
  96. * Set dateNaissance
  97. *
  98. * @param date $dateNaissance
  99. */
  100. public function setDateNaissance($dateNaissance)
  101. {
  102. $this->dateNaissance = $dateNaissance;
  103. }
  104.  
  105. /**
  106. * Get dateNaissance
  107. *
  108. * @return date
  109. */
  110. public function getDateNaissance()
  111. {
  112. return $this->dateNaissance;
  113. }
  114.  
  115. /**
  116. * Set sexe
  117. *
  118. * @param string $sexe
  119. */
  120. public function setSexe($sexe)
  121. {
  122. $this->sexe = $sexe;
  123. }
  124.  
  125. /**
  126. * Get sexe
  127. *
  128. * @return string
  129. */
  130. public function getSexe()
  131. {
  132. return $this->sexe;
  133. }
  134. }
Add Comment
Please, Sign In to add comment