src/Entity/Factures.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity(repositoryClass="App\Repository\FacturesRepository")
  6. * @ORM\Table(name="factures", options={"collate"="latin1_general_ci","charset"="latin1"})
  7. * @ORM\HasLifecycleCallbacks()
  8. */
  9. class Factures
  10. {
  11. /**
  12. * @var integer
  13. *
  14. * @ORM\Column(name="id", type="integer", nullable=false)
  15. * @ORM\Id
  16. * @ORM\GeneratedValue(strategy="IDENTITY")
  17. */
  18. private $id;
  19. /**
  20. * @var string
  21. *
  22. * @ORM\Column(name="source", type="string", length=10, nullable=false)
  23. */
  24. private $source;
  25. /**
  26. * @ORM\ManyToOne(targetEntity="App\Entity\Fournisseur", cascade={"persist"})
  27. * @ORM\JoinColumn(nullable=true)
  28. */
  29. private $idfournisseur;
  30. /**
  31. * @var integer
  32. *
  33. * @ORM\Column(name="numero", type="integer", nullable=false)
  34. */
  35. private $numero;
  36. /**
  37. * @var integer
  38. *
  39. * @ORM\Column(name="correction", type="integer", nullable=false)
  40. */
  41. private $correction;
  42. /**
  43. * @var \DateTime
  44. *
  45. * @ORM\Column(name="datefr", type="date", nullable=false)
  46. */
  47. private $datefr;
  48. /**
  49. * @var float
  50. *
  51. * @ORM\Column(name="montantht", type="decimal", nullable=false, precision=8, scale=2)
  52. */
  53. private $montantht;
  54. /**
  55. * @var string
  56. *
  57. * @ORM\Column(name="fichier", type="text", nullable=false)
  58. */
  59. private $fichier;
  60. /**
  61. * @var string
  62. *
  63. * @ORM\Column(name="description", type="text", nullable=false)
  64. */
  65. private $description;
  66. /**
  67. * Get id
  68. *
  69. * @return integer
  70. */
  71. public function getId()
  72. {
  73. return $this->id;
  74. }
  75. /**
  76. * Set source
  77. *
  78. * @param string $source
  79. * @return Factures
  80. */
  81. public function setSource($source)
  82. {
  83. $this->source = $source;
  84. return $this;
  85. }
  86. /**
  87. * Get source
  88. *
  89. * @return string
  90. */
  91. public function getSource()
  92. {
  93. return $this->source;
  94. }
  95. /**
  96. * Set numero
  97. *
  98. * @param integer $numero
  99. * @return Factures
  100. */
  101. public function setNumero($numero)
  102. {
  103. $this->numero = $numero;
  104. return $this;
  105. }
  106. /**
  107. * Get numero
  108. *
  109. * @return integer
  110. */
  111. public function getNumero()
  112. {
  113. return $this->numero;
  114. }
  115. /**
  116. * Set correction
  117. *
  118. * @param integer $correction
  119. * @return Factures
  120. */
  121. public function setCorrection($correction)
  122. {
  123. $this->correction = $correction;
  124. return $this;
  125. }
  126. /**
  127. * Get correction
  128. *
  129. * @return integer
  130. */
  131. public function getCorrection()
  132. {
  133. return $this->correction;
  134. }
  135. /**
  136. * Set datefr
  137. *
  138. * @param \DateTime $datefr
  139. * @return Factures
  140. */
  141. public function setDatefr($datefr)
  142. {
  143. $this->datefr = $datefr;
  144. return $this;
  145. }
  146. /**
  147. * Get datefr
  148. *
  149. * @return \DateTime
  150. */
  151. public function getDatefr()
  152. {
  153. return $this->datefr;
  154. }
  155. /**
  156. * Set montantht
  157. *
  158. * @param float $montantht
  159. * @return Factures
  160. */
  161. public function setMontantht($montantht)
  162. {
  163. $this->montantht = $montantht;
  164. return $this;
  165. }
  166. /**
  167. * Get montantht
  168. *
  169. * @return float
  170. */
  171. public function getMontantht()
  172. {
  173. return $this->montantht;
  174. }
  175. /**
  176. * Set fichier
  177. *
  178. * @param string $fichier
  179. * @return Factures
  180. */
  181. public function setFichier($fichier)
  182. {
  183. $this->fichier = $fichier;
  184. return $this;
  185. }
  186. /**
  187. * Get fichier
  188. *
  189. * @return string
  190. */
  191. public function getFichier()
  192. {
  193. return $this->fichier;
  194. }
  195. /**
  196. * Set description
  197. *
  198. * @param string $description
  199. * @return Factures
  200. */
  201. public function setDescription($description)
  202. {
  203. $this->description = $description;
  204. return $this;
  205. }
  206. /**
  207. * Get description
  208. *
  209. * @return string
  210. */
  211. public function getDescription()
  212. {
  213. return $this->description;
  214. }
  215. /**
  216. * Set idfournisseur
  217. *
  218. * @param Fournisseur $idfournisseur
  219. * @return Factures
  220. */
  221. public function setIdfournisseur(Fournisseur $idfournisseur)
  222. {
  223. $this->idfournisseur = $idfournisseur;
  224. return $this;
  225. }
  226. /**
  227. * Get idfournisseur
  228. *
  229. * @return Fournisseur
  230. */
  231. public function getIdfournisseur()
  232. {
  233. return $this->idfournisseur;
  234. }
  235. }