src/Entity/Logs/PayPalLog.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.  * PayPalLog
  7.  *
  8.  * @ORM\Table(name="paypal_log")
  9.  *
  10.  * @ORM\Entity(repositoryClass="App\Repository\Logs\PayPalLogRepository")
  11.  */
  12. class PayPalLog
  13. {
  14.     /**
  15.      * @ORM\Id()
  16.      *
  17.      * @ORM\GeneratedValue()
  18.      *
  19.      * @ORM\Column(type="integer", name="id_paypal_log")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string|null
  24.      *
  25.      * @ORM\Column(type="string", length=32, nullable=true, name="id_order")
  26.      */
  27.     private ?string $order;
  28.     /**
  29.      * @var string|null
  30.      *
  31.      * @ORM\Column(type="string",length=254, nullable=true)
  32.      */
  33.     private $transactionId;
  34.     /**
  35.      * @var string|null
  36.      *
  37.      * @ORM\Column(type="string", length=50, nullable=true)
  38.      */
  39.     private $ack;
  40.     /**
  41.      * @var PayPalRequest|null
  42.      *
  43.      * @ORM\ManyToOne(targetEntity="App\Entity\Logs\PayPalRequest")
  44.      *
  45.      * @ORM\JoinColumn(name="id_paypal_request", referencedColumnName="id_request", nullable=true)
  46.      */
  47.     private $payPalRequest;
  48.     /**
  49.      * @var PayPalLogError[]|ArrayCollection
  50.      *
  51.      * @ORM\OneToMany(targetEntity="App\Entity\Logs\PayPalLogError", mappedBy="payPalLog")
  52.      */
  53.     private $requestErrors;
  54.     public function setLogValues(string $transactionId, ?string $orderPayPalRequest $payPalRequeststring $ack): void
  55.     {
  56.         $this->transactionId $transactionId;
  57.         $this->ack $ack;
  58.         $this->order $order;
  59.         $this->payPalRequest $payPalRequest;
  60.     }
  61.     /**
  62.      * @return PayPalLogError[]|ArrayCollection
  63.      */
  64.     public function getRequestErrors()
  65.     {
  66.         return $this->requestErrors;
  67.     }
  68.     public function getOrder(): ?string
  69.     {
  70.         return $this->order;
  71.     }
  72.     public function setOrder(?string $order): PayPalLog
  73.     {
  74.         $this->order $order;
  75.         return $this;
  76.     }
  77.     public function getTransactionId(): ?string
  78.     {
  79.         return $this->transactionId;
  80.     }
  81.     public function setTransactionId(?string $transactionId): PayPalLog
  82.     {
  83.         $this->transactionId $transactionId;
  84.         return $this;
  85.     }
  86.     public function getAck(): ?string
  87.     {
  88.         return $this->ack;
  89.     }
  90.     public function setAck(?string $ack): PayPalLog
  91.     {
  92.         $this->ack $ack;
  93.         return $this;
  94.     }
  95.     public function getPayPalRequest(): ?PayPalRequest
  96.     {
  97.         return $this->payPalRequest;
  98.     }
  99.     public function setPayPalRequest(?PayPalRequest $payPalRequest): PayPalLog
  100.     {
  101.         $this->payPalRequest $payPalRequest;
  102.         return $this;
  103.     }
  104. }