Нет описания

LogEntity.php 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. namespace MailPoet\Entities;
  3. if (!defined('ABSPATH')) exit;
  4. use DateTimeInterface;
  5. use MailPoet\Doctrine\EntityTraits\AutoincrementedIdTrait;
  6. use MailPoet\Doctrine\EntityTraits\CreatedAtTrait;
  7. use MailPoetVendor\Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * @ORM\Entity()
  10. * @ORM\Table(name="log")
  11. */
  12. class LogEntity {
  13. use AutoincrementedIdTrait;
  14. use CreatedAtTrait;
  15. /**
  16. * @ORM\Column(type="string", nullable=true)
  17. * @var string|null
  18. */
  19. private $name;
  20. /**
  21. * @ORM\Column(type="integer", nullable=true)
  22. * @var int|null
  23. */
  24. private $level;
  25. /**
  26. * @ORM\Column(type="string", nullable=true)
  27. * @var string|null
  28. */
  29. private $message;
  30. /**
  31. * @return string|null
  32. */
  33. public function getName(): ?string {
  34. return $this->name;
  35. }
  36. /**
  37. * @return int|null
  38. */
  39. public function getLevel(): ?int {
  40. return $this->level;
  41. }
  42. /**
  43. * @return string|null
  44. */
  45. public function getMessage(): ?string {
  46. return $this->message;
  47. }
  48. public function setName(?string $name): void {
  49. $this->name = $name;
  50. }
  51. public function setLevel(?int $level): void {
  52. $this->level = $level;
  53. }
  54. public function setMessage(?string $message): void {
  55. $this->message = $message;
  56. }
  57. public function setCreatedAt(DateTimeInterface $createdAt): void {
  58. $this->createdAt = $createdAt;
  59. }
  60. }