src/Entity/Core/UserError.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Core;
  3. use DateTime;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Entity\User\User;
  6. #[ORM\Table(name: 'user_errors')]
  7. #[ORM\Entity]
  8. class UserError
  9. {
  10. /**
  11. * @var int
  12. */
  13. #[ORM\Column(name: 'id', type: 'integer')]
  14. #[ORM\Id]
  15. #[ORM\GeneratedValue(strategy: 'AUTO')]
  16. private $id;
  17. /**
  18. * @var User
  19. */
  20. #[ORM\JoinColumn(name: 'user_id', referencedColumnName: 'id', onDelete: 'CASCADE')]
  21. #[ORM\ManyToOne(targetEntity: User::class)]
  22. private $user;
  23. /**
  24. * @var string
  25. */
  26. #[ORM\Column(name: 'url', length: 512, type: 'text', nullable: true)]
  27. private $url;
  28. /**
  29. * @var string
  30. */
  31. #[ORM\Column(name: 'class', length: 250, type: 'text', nullable: true)]
  32. private $class;
  33. /**
  34. * @var string
  35. */
  36. #[ORM\Column(name: 'status_code', length: 10, type: 'text')]
  37. private $statusCode;
  38. /**
  39. * @var string
  40. */
  41. #[ORM\Column(name: 'message', length: 400, type: 'text', nullable: true)]
  42. private $message;
  43. /**
  44. * @var string
  45. */
  46. #[ORM\Column(name: 'email', length: 255, type: 'string', nullable: true)]
  47. private $email;
  48. /**
  49. * @var string
  50. */
  51. #[ORM\Column(name: 'institution_name', type: 'text', nullable: true)]
  52. private $institutionName;
  53. /**
  54. * @var string
  55. */
  56. #[ORM\Column(name: 'classroom_names', type: 'text', nullable: true)]
  57. private $classroomNames;
  58. /**
  59. * @var string
  60. */
  61. #[ORM\Column(name: 'file', length: 250, type: 'text', nullable: true)]
  62. private $file;
  63. /**
  64. * @var string
  65. */
  66. #[ORM\Column(name: 'file_line', length: 5, type: 'text', nullable: true)]
  67. private $fileLine;
  68. /**
  69. * @var DateTime
  70. */
  71. #[ORM\Column(name: 'created_at', type: 'datetime', nullable: true)]
  72. private $createdAt;
  73. /**
  74. * Get id.
  75. *
  76. * @return int
  77. */
  78. public function getId()
  79. {
  80. return $this->id;
  81. }
  82. public function getUser(): User
  83. {
  84. return $this->user;
  85. }
  86. public function setUser(User $user): void
  87. {
  88. $this->user = $user;
  89. }
  90. public function getClass(): string
  91. {
  92. return $this->class;
  93. }
  94. public function setClass(string $class): void
  95. {
  96. $this->class = $class;
  97. }
  98. public function getStatusCode(): string
  99. {
  100. return $this->statusCode;
  101. }
  102. public function setStatusCode(string $statusCode): void
  103. {
  104. $this->statusCode = $statusCode;
  105. }
  106. public function getMessage(): string
  107. {
  108. return $this->message;
  109. }
  110. public function setMessage(string $message): void
  111. {
  112. $this->message = $message;
  113. }
  114. public function getEmail(): string
  115. {
  116. return $this->email;
  117. }
  118. /**
  119. * @param string $message
  120. */
  121. public function setEmail(?string $email): void
  122. {
  123. $this->email = $email;
  124. }
  125. public function getInstitutionName(): string
  126. {
  127. return $this->institutionName;
  128. }
  129. /**
  130. * @param string $institutionName
  131. */
  132. public function setInstitutionName(?string $institutionName): void
  133. {
  134. $this->institutionName = $institutionName;
  135. }
  136. public function getClassroomNames(): string
  137. {
  138. return $this->classroomNames;
  139. }
  140. /**
  141. * @param string $classroomNames
  142. */
  143. public function setClassroomNames(?string $classroomNames): void
  144. {
  145. $this->classroomNames = $classroomNames;
  146. }
  147. public function getFile(): string
  148. {
  149. return $this->file;
  150. }
  151. public function setFile(string $file): void
  152. {
  153. $this->file = $file;
  154. }
  155. public function getFileLine(): string
  156. {
  157. return $this->fileLine;
  158. }
  159. public function setFileLine(string $fileLine): void
  160. {
  161. $this->fileLine = $fileLine;
  162. }
  163. public function getCreatedAt(): DateTime
  164. {
  165. return $this->createdAt;
  166. }
  167. public function setCreatedAt(DateTime $createdAt): void
  168. {
  169. $this->createdAt = $createdAt;
  170. }
  171. public function getUrl(): string
  172. {
  173. return $this->url;
  174. }
  175. public function setUrl(string $url): void
  176. {
  177. $this->url = $url;
  178. }
  179. }