<?phpnamespace App\Entity\Logs;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\ORM\Mapping as ORM;/** * PayPalError * * @ORM\Table(name="paypal_error") * * @ORM\Entity(repositoryClass="App\Repository\Logs\PayPalErrorRepository") */class PayPalError{ /** * @ORM\Id() * * @ORM\GeneratedValue() * * @ORM\Column(type="integer", name="id_paypal_error") */ private $id; /** * @var int * * @ORM\Column(type="integer", nullable=true) */ private $code; /** * @var string * * @ORM\Column(type="string", length=254, nullable=true) */ private ?string $component = null; /** * @var string * * @ORM\Column(type="string", length=254, nullable=true) */ private $short; /** * @var string * * @ORM\Column(type="text", nullable=true, name="`long`") */ private $long; /** * @var PayPalLogError[]|ArrayCollection * * @ORM\OneToMany(targetEntity="App\Entity\Logs\PayPalLogError", mappedBy="payPalError") */ private $payPalLogError; public function __construct() { $this->payPalLogError = new ArrayCollection(); } /** * @return string */ public function getShortDescription(): string { return $this->short; } /** * @return int */ public function getErrorCode(): int { return $this->code; } public function getCode(): int { return $this->code; } public function setCode(int $code): PayPalError { $this->code = $code; return $this; } public function getComponent(): ?string { return $this->component; } public function setComponent(?string $component): PayPalError { $this->component = $component; return $this; } public function getShort(): string { return $this->short; } public function setShort(string $short): PayPalError { $this->short = $short; return $this; } public function getLong(): string { return $this->long; } public function setLong(string $long): PayPalError { $this->long = $long; return $this; }}