Twxerror.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. use Doctrine\Common\Collections\ArrayCollection;
  3. use Doctrine\Common\Collections\Collection;
  4. /**
  5. * @Entity @Table(name="twx_errors")
  6. */
  7. class Twxerror
  8. {
  9. /**
  10. * @Id @Column(type="integer") @GeneratedValue
  11. */
  12. private $id;
  13. /**
  14. * @var integet
  15. *
  16. * @Column(type="integer")
  17. */
  18. private $code;
  19. /**
  20. * @var string
  21. *
  22. * @Column(type="string")
  23. */
  24. private $massage_error;
  25. /**
  26. * @var datetime
  27. *
  28. * @Column(type="datetime")
  29. */
  30. private $date_error;
  31. public function getId()
  32. {
  33. return $this->id;
  34. }
  35. public function getCode(): string
  36. {
  37. return $this->code;
  38. }
  39. public function setCode(integer $code): self
  40. {
  41. $this->code = $code;
  42. return $this;
  43. }
  44. public function getMassageError()
  45. {
  46. return $this->massage_error;
  47. }
  48. public function setMassageError(string $massage_error): self
  49. {
  50. $this->massage_error = $massage_error;
  51. return $this;
  52. }
  53. public function getDateError(): \DateTimeInterface
  54. {
  55. return $this->date_error;
  56. }
  57. public function setDateError(\DateTimeInterface $date_error): self
  58. {
  59. $this->date_error = $date_error;
  60. return $this;
  61. }
  62. }