src/Entity/Adminprev.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Adminprev
  6. *
  7. * @ORM\Table(name="adminprev", options={"collate"="latin1_general_ci","charset"="latin1"})
  8. * @ORM\Entity(repositoryClass="App\Repository\AdminprevRepository")
  9. */
  10. class Adminprev
  11. {
  12. /**
  13. * @var integer
  14. *
  15. * @ORM\Column(name="id", type="integer", nullable=false)
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="IDENTITY")
  18. */
  19. private $id;
  20. /**
  21. * @ORM\ManyToOne(targetEntity="App\Entity\Admin", cascade={"persist"})
  22. * @ORM\JoinColumn(nullable=false)
  23. */
  24. private $idadmin;
  25. /**
  26. * @var \DateTime
  27. *
  28. * @ORM\Column(name="datefr", type="date", nullable=false)
  29. */
  30. private $datefr;
  31. /**
  32. * @var integer
  33. *
  34. * @ORM\Column(name="mois", type="smallint", nullable=false)
  35. */
  36. private $mois;
  37. /**
  38. * @var integer
  39. *
  40. * @ORM\Column(name="annee", type="integer", nullable=false)
  41. */
  42. private $annee;
  43. /**
  44. * @var float
  45. *
  46. * @ORM\Column(name="montantht", type="decimal", nullable=false)
  47. */
  48. private $montantht;
  49. /**
  50. * Get id
  51. *
  52. * @return integer
  53. */
  54. public function getId()
  55. {
  56. return $this->id;
  57. }
  58. /**
  59. * Set datefr
  60. *
  61. * @param \DateTime $datefr
  62. * @return Adminprev
  63. */
  64. public function setDatefr($datefr)
  65. {
  66. $this->datefr = $datefr;
  67. return $this;
  68. }
  69. /**
  70. * Get datefr
  71. *
  72. * @return \DateTime
  73. */
  74. public function getDatefr()
  75. {
  76. return $this->datefr;
  77. }
  78. /**
  79. * @param int $mois
  80. * @return $this
  81. */
  82. public function setMois($mois)
  83. {
  84. $this->mois = $mois;
  85. return $this;
  86. }
  87. /**
  88. * @return int
  89. */
  90. public function getMois(): int
  91. {
  92. return $this->mois;
  93. }
  94. /**
  95. * Set annee
  96. *
  97. * @param integer $annee
  98. * @return Adminprev
  99. */
  100. public function setAnnee($annee)
  101. {
  102. $this->annee = $annee;
  103. return $this;
  104. }
  105. /**
  106. * Get annee
  107. *
  108. * @return integer
  109. */
  110. public function getAnnee()
  111. {
  112. return $this->annee;
  113. }
  114. /**
  115. * Set montantht
  116. *
  117. * @param float $montantht
  118. * @return Adminprev
  119. */
  120. public function setMontantht($montantht)
  121. {
  122. $this->montantht = $montantht;
  123. return $this;
  124. }
  125. /**
  126. * Get montantht
  127. *
  128. * @return float
  129. */
  130. public function getMontantht()
  131. {
  132. return $this->montantht;
  133. }
  134. /**
  135. * Set idadmin
  136. *
  137. * @param Admin $idadmin
  138. * @return Adminprev
  139. */
  140. public function setIdadmin(Admin $idadmin)
  141. {
  142. $this->idadmin = $idadmin;
  143. return $this;
  144. }
  145. /**
  146. * Get idadmin
  147. *
  148. * @return Admin
  149. */
  150. public function getIdadmin()
  151. {
  152. return $this->idadmin;
  153. }
  154. }