src/Entity/Adminevent.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Adminevent
  6. *
  7. * @ORM\Table(name="adminevent", options={"collate"="latin1_general_ci","charset"="latin1"})
  8. * @ORM\Entity(repositoryClass="App\Repository\AdmineventRepository")
  9. */
  10. class Adminevent {
  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. * @ORM\ManyToOne(targetEntity="App\Entity\Admin", cascade={"persist"})
  21. * @ORM\JoinColumn(nullable=false)
  22. */
  23. private $idadmin;
  24. /**
  25. * @ORM\ManyToOne(targetEntity="App\Entity\Client", cascade={"persist"})
  26. * @ORM\JoinColumn(nullable=false)
  27. */
  28. private $idclient;
  29. /**
  30. * @ORM\ManyToOne(targetEntity="App\Entity\Fournisseur")
  31. * @ORM\JoinColumn(nullable=true)
  32. */
  33. private $idavec;
  34. /**
  35. * @var string
  36. *
  37. * @ORM\Column(name="type", type="string", length=15, nullable=false)
  38. */
  39. private $type;
  40. /**
  41. * @ORM\ManyToOne(targetEntity="App\Entity\Intitule")
  42. * @ORM\JoinColumn(nullable=false)
  43. */
  44. private $idintitule;
  45. /**
  46. * @var integer
  47. *
  48. * @ORM\Column(name="date", type="integer", nullable=false)
  49. */
  50. private $date;
  51. /**
  52. * @var string
  53. *
  54. * @ORM\Column(name="jour", type="string", length=2, nullable=false)
  55. */
  56. private $jour;
  57. /**
  58. * @var string
  59. *
  60. * @ORM\Column(name="mois", type="string", length=2, nullable=false)
  61. */
  62. private $mois;
  63. /**
  64. * @var string
  65. *
  66. * @ORM\Column(name="annee", type="string", length=4, nullable=false)
  67. */
  68. private $annee;
  69. /**
  70. * @var boolean
  71. *
  72. * @ORM\Column(name="minute", type="boolean", nullable=false)
  73. */
  74. private $minute;
  75. /**
  76. * @var boolean
  77. *
  78. * @ORM\Column(name="heure", type="boolean", nullable=false)
  79. */
  80. private $heure;
  81. /**
  82. * @var \DateTime
  83. *
  84. * @ORM\Column(name="datefr", type="datetime", nullable=false)
  85. */
  86. private $datefr;
  87. /**
  88. * @var string
  89. *
  90. * @ORM\Column(name="message", type="text", nullable=false)
  91. */
  92. private $message;
  93. /**
  94. * @var string
  95. *
  96. * @ORM\Column(name="erreur", type="string", length=150, nullable=true)
  97. */
  98. private $erreur;
  99. /**
  100. * @var boolean
  101. *
  102. * @ORM\Column(name="traite", type="boolean", nullable=false)
  103. */
  104. private $traite;
  105. /**
  106. * @var boolean
  107. *
  108. * @ORM\Column(name="partage", type="boolean", nullable=false)
  109. */
  110. private $partage;
  111. public function __construct() {
  112. $this->date = 0;
  113. $this->jour = '';
  114. $this->mois = '';
  115. $this->annee = '';
  116. $this->minute = false;
  117. $this->heure = false;
  118. $this->traite = false;
  119. $this->partage = false;
  120. $this->datefr = new \DateTime("now");
  121. }
  122. /**
  123. * Get id
  124. *
  125. * @return integer
  126. */
  127. public function getId()
  128. {
  129. return $this->id;
  130. }
  131. /**
  132. * Set idavec
  133. *
  134. * @param integer $idavec
  135. * @return Adminevent
  136. */
  137. public function setIdavec($idavec)
  138. {
  139. $this->idavec = $idavec;
  140. return $this;
  141. }
  142. /**
  143. * Get idavec
  144. *
  145. * @return integer
  146. */
  147. public function getIdavec()
  148. {
  149. return $this->idavec;
  150. }
  151. /**
  152. * Set type
  153. *
  154. * @param string $type
  155. * @return Adminevent
  156. */
  157. public function setType($type)
  158. {
  159. $this->type = $type;
  160. return $this;
  161. }
  162. /**
  163. * Get type
  164. *
  165. * @return string
  166. */
  167. public function getType()
  168. {
  169. return $this->type;
  170. }
  171. /**
  172. * Set idintitule
  173. *
  174. * @param integer $idintitule
  175. * @return Adminevent
  176. */
  177. public function setIdintitule($idintitule)
  178. {
  179. $this->idintitule = $idintitule;
  180. return $this;
  181. }
  182. /**
  183. * Get idintitule
  184. *
  185. * @return integer
  186. */
  187. public function getIdintitule()
  188. {
  189. return $this->idintitule;
  190. }
  191. /**
  192. * Set date
  193. *
  194. * @param integer $date
  195. * @return Adminevent
  196. */
  197. public function setDate($date)
  198. {
  199. $this->date = $date;
  200. return $this;
  201. }
  202. /**
  203. * Get date
  204. *
  205. * @return integer
  206. */
  207. public function getDate()
  208. {
  209. return $this->date;
  210. }
  211. /**
  212. * Set jour
  213. *
  214. * @param string $jour
  215. * @return Adminevent
  216. */
  217. public function setJour($jour)
  218. {
  219. $this->jour = $jour;
  220. return $this;
  221. }
  222. /**
  223. * Get jour
  224. *
  225. * @return string
  226. */
  227. public function getJour()
  228. {
  229. return $this->jour;
  230. }
  231. /**
  232. * Set mois
  233. *
  234. * @param string $mois
  235. * @return Adminevent
  236. */
  237. public function setMois($mois)
  238. {
  239. $this->mois = $mois;
  240. return $this;
  241. }
  242. /**
  243. * Get mois
  244. *
  245. * @return string
  246. */
  247. public function getMois()
  248. {
  249. return $this->mois;
  250. }
  251. /**
  252. * Set annee
  253. *
  254. * @param string $annee
  255. * @return Adminevent
  256. */
  257. public function setAnnee($annee)
  258. {
  259. $this->annee = $annee;
  260. return $this;
  261. }
  262. /**
  263. * Get annee
  264. *
  265. * @return string
  266. */
  267. public function getAnnee()
  268. {
  269. return $this->annee;
  270. }
  271. /**
  272. * Set minute
  273. *
  274. * @param boolean $minute
  275. * @return Adminevent
  276. */
  277. public function setMinute($minute)
  278. {
  279. $this->minute = $minute;
  280. return $this;
  281. }
  282. /**
  283. * Get minute
  284. *
  285. * @return boolean
  286. */
  287. public function getMinute()
  288. {
  289. return $this->minute;
  290. }
  291. /**
  292. * Set heure
  293. *
  294. * @param boolean $heure
  295. * @return Adminevent
  296. */
  297. public function setHeure($heure)
  298. {
  299. $this->heure = $heure;
  300. return $this;
  301. }
  302. /**
  303. * Get heure
  304. *
  305. * @return boolean
  306. */
  307. public function getHeure()
  308. {
  309. return $this->heure;
  310. }
  311. /**
  312. * Set datefr
  313. *
  314. * @param \DateTime $datefr
  315. * @return Adminevent
  316. */
  317. public function setDatefr($datefr)
  318. {
  319. $this->datefr = $datefr;
  320. return $this;
  321. }
  322. /**
  323. * Get datefr
  324. *
  325. * @return \DateTime
  326. */
  327. public function getDatefr()
  328. {
  329. return $this->datefr;
  330. }
  331. /**
  332. * Set message
  333. *
  334. * @param string $message
  335. * @return Adminevent
  336. */
  337. public function setMessage($message)
  338. {
  339. $this->message = $message;
  340. return $this;
  341. }
  342. /**
  343. * Get message
  344. *
  345. * @return string
  346. */
  347. public function getMessage()
  348. {
  349. return $this->message;
  350. }
  351. /**
  352. * Set erreur
  353. *
  354. * @param string $erreur
  355. * @return Adminevent
  356. */
  357. public function setErreur($erreur)
  358. {
  359. $this->erreur = $erreur;
  360. return $this;
  361. }
  362. /**
  363. * Get erreur
  364. *
  365. * @return string
  366. */
  367. public function getErreur()
  368. {
  369. return $this->erreur;
  370. }
  371. /**
  372. * Set traite
  373. *
  374. * @param boolean $traite
  375. * @return Adminevent
  376. */
  377. public function setTraite($traite)
  378. {
  379. $this->traite = $traite;
  380. return $this;
  381. }
  382. /**
  383. * Get traite
  384. *
  385. * @return boolean
  386. */
  387. public function getTraite()
  388. {
  389. return $this->traite;
  390. }
  391. /**
  392. * Set partage
  393. *
  394. * @param boolean $partage
  395. * @return Adminevent
  396. */
  397. public function setPartage($partage)
  398. {
  399. $this->partage = $partage;
  400. return $this;
  401. }
  402. /**
  403. * Get partage
  404. *
  405. * @return boolean
  406. */
  407. public function getPartage()
  408. {
  409. return $this->partage;
  410. }
  411. /**
  412. * Set idadmin
  413. *
  414. * @param Admin $idadmin
  415. * @return Adminevent
  416. */
  417. public function setIdadmin(Admin $idadmin)
  418. {
  419. $this->idadmin = $idadmin;
  420. return $this;
  421. }
  422. /**
  423. * Get idadmin
  424. *
  425. * @return Admin
  426. */
  427. public function getIdadmin()
  428. {
  429. return $this->idadmin;
  430. }
  431. /**
  432. * Set idclient
  433. *
  434. * @param Client $idclient
  435. * @return Adminevent
  436. */
  437. public function setIdclient(Client $idclient)
  438. {
  439. $this->idclient = $idclient;
  440. return $this;
  441. }
  442. /**
  443. * Get idclient
  444. *
  445. * @return Client
  446. */
  447. public function getIdclient()
  448. {
  449. return $this->idclient;
  450. }
  451. }