src/Entity/Logs/PayPalError.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Logs;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * PayPalError
  7. *
  8. * @ORM\Table(name="paypal_error")
  9. *
  10. * @ORM\Entity(repositoryClass="App\Repository\Logs\PayPalErrorRepository")
  11. */
  12. class PayPalError
  13. {
  14. /**
  15. * @ORM\Id()
  16. *
  17. * @ORM\GeneratedValue()
  18. *
  19. * @ORM\Column(type="integer", name="id_paypal_error")
  20. */
  21. private $id;
  22. /**
  23. * @var int
  24. *
  25. * @ORM\Column(type="integer", nullable=true)
  26. */
  27. private $code;
  28. /**
  29. * @var string
  30. *
  31. * @ORM\Column(type="string", length=254, nullable=true)
  32. */
  33. private ?string $component = null;
  34. /**
  35. * @var string
  36. *
  37. * @ORM\Column(type="string", length=254, nullable=true)
  38. */
  39. private $short;
  40. /**
  41. * @var string
  42. *
  43. * @ORM\Column(type="text", nullable=true, name="`long`")
  44. */
  45. private $long;
  46. /**
  47. * @var PayPalLogError[]|ArrayCollection
  48. *
  49. * @ORM\OneToMany(targetEntity="App\Entity\Logs\PayPalLogError", mappedBy="payPalError")
  50. */
  51. private $payPalLogError;
  52. public function __construct()
  53. {
  54. $this->payPalLogError = new ArrayCollection();
  55. }
  56. /**
  57. * @return string
  58. */
  59. public function getShortDescription(): string
  60. {
  61. return $this->short;
  62. }
  63. /**
  64. * @return int
  65. */
  66. public function getErrorCode(): int
  67. {
  68. return $this->code;
  69. }
  70. public function getCode(): int
  71. {
  72. return $this->code;
  73. }
  74. public function setCode(int $code): PayPalError
  75. {
  76. $this->code = $code;
  77. return $this;
  78. }
  79. public function getComponent(): ?string
  80. {
  81. return $this->component;
  82. }
  83. public function setComponent(?string $component): PayPalError
  84. {
  85. $this->component = $component;
  86. return $this;
  87. }
  88. public function getShort(): string
  89. {
  90. return $this->short;
  91. }
  92. public function setShort(string $short): PayPalError
  93. {
  94. $this->short = $short;
  95. return $this;
  96. }
  97. public function getLong(): string
  98. {
  99. return $this->long;
  100. }
  101. public function setLong(string $long): PayPalError
  102. {
  103. $this->long = $long;
  104. return $this;
  105. }
  106. }