src/Entity/Gos/BraintreeResponse.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\Gos\BraintreeResponseRepository")
  6.  * @ORM\HasLifecycleCallbacks()
  7.  */
  8. class BraintreeResponse
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=true)
  18.      */
  19.     private $transactionId;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $status;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $type;
  28.     /**
  29.      * @ORM\Column(type="boolean", nullable=true)
  30.      */
  31.     private $justSend;
  32.     /**
  33.      * @ORM\Column(type="text")
  34.      */
  35.     private $request;
  36.     /**
  37.      * @ORM\Column(type="text")
  38.      */
  39.     private $response;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity="User", inversedBy="braintreeResponse")
  42.      * @ORM\JoinColumn()
  43.      */
  44.     private $user;
  45.     /**
  46.      * @ORM\ManyToOne(targetEntity="Orders", inversedBy="braintreeResponse")
  47.      * @ORM\JoinColumn()
  48.      */
  49.     private $order;
  50.     /**
  51.      * @ORM\Column(type="datetime")
  52.      */
  53.     private $createdAt;
  54.     /**
  55.      * @ORM\Column(type="datetime", nullable=true)
  56.      */
  57.     private $updatedAt;
  58.     /** @ORM\PrePersist() */
  59.     public function onPrePersist()
  60.     {
  61.         $this->createdAt = new \DateTime();
  62.     }
  63.     /** @ORM\PreUpdate() */
  64.     public function onPreUpdate()
  65.     {
  66.         $this->updatedAt = new \DateTime();
  67.     }
  68.     public function getId(): ?int
  69.     {
  70.         return $this->id;
  71.     }
  72.     public function getTransactionId(): ?string
  73.     {
  74.         return $this->transactionId;
  75.     }
  76.     public function setTransactionId(?string $transactionId): self
  77.     {
  78.         $this->transactionId $transactionId;
  79.         return $this;
  80.     }
  81.     public function getStatus(): ?string
  82.     {
  83.         return $this->status;
  84.     }
  85.     public function setStatus(string $status): self
  86.     {
  87.         $this->status $status;
  88.         return $this;
  89.     }
  90.     public function getType(): ?string
  91.     {
  92.         return $this->type;
  93.     }
  94.     public function setType(?string $type): self
  95.     {
  96.         $this->type $type;
  97.         return $this;
  98.     }
  99.     public function getRequest(): ?string
  100.     {
  101.         return $this->request;
  102.     }
  103.     public function setRequest(string $request): self
  104.     {
  105.         $this->request $request;
  106.         return $this;
  107.     }
  108.     public function getResponse(): ?string
  109.     {
  110.         return $this->response;
  111.     }
  112.     public function setResponse(string $response): self
  113.     {
  114.         $this->response $response;
  115.         return $this;
  116.     }
  117.     public function getCreatedAt(): ?\DateTimeInterface
  118.     {
  119.         return $this->createdAt;
  120.     }
  121.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  122.     {
  123.         $this->createdAt $createdAt;
  124.         return $this;
  125.     }
  126.     public function getUpdatedAt(): ?\DateTimeInterface
  127.     {
  128.         return $this->updatedAt;
  129.     }
  130.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  131.     {
  132.         $this->updatedAt $updatedAt;
  133.         return $this;
  134.     }
  135.     public function getUser(): ?User
  136.     {
  137.         return $this->user;
  138.     }
  139.     public function setUser(?User $user): self
  140.     {
  141.         $this->user $user;
  142.         return $this;
  143.     }
  144.     public function getOrder(): ?Orders
  145.     {
  146.         return $this->order;
  147.     }
  148.     public function setOrder(?Orders $order): self
  149.     {
  150.         $this->order $order;
  151.         return $this;
  152.     }
  153.     public function setJustSend($justSend)
  154.     {
  155.         $this->justSend $justSend;
  156.         return $this;
  157.     }
  158.     public function getJustSend()
  159.     {
  160.         return $this->justSend;
  161.     }
  162. }