<?phpnamespace App\Entity\Gos;use App\Repository\Gos\NewCardTokenRequestRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=NewCardTokenRequestRepository::class) * @ORM\HasLifecycleCallbacks() */class NewCardTokenRequest{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=OrderPart::class, inversedBy="newCardTokenRequests") * @ORM\JoinColumn(nullable=false) */ private $orderPart; /** * Previously used card token * * @ORM\Column(type="string", length=255) */ private $inactiveToken; /** * id of the last successful recurring payment given by provider * * @ORM\Column(type="string", length=255) */ private $providerOrderId; /** * FO payment provider system * 1 - PayU * 2 - WorldPay * 3 - Opayo * 4 - Stripe * * @ORM\Column(type="integer") */ private $paymentProviderId; /** * FO reference id for order * * @ORM\Column(type="string", length=255) */ private $referenceId; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $mailSentAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $newTokenSentAt; /** @ORM\PrePersist() */ public function prePersist() { $this->createdAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getOrderPart(): ?OrderPart { return $this->orderPart; } public function setOrderPart(?OrderPart $orderPart): self { $this->orderPart = $orderPart; return $this; } public function getInactiveToken(): ?string { return $this->inactiveToken; } public function setInactiveToken(string $inactiveToken): self { $this->inactiveToken = $inactiveToken; return $this; } public function getProviderOrderId(): ?string { return $this->providerOrderId; } public function setProviderOrderId(string $providerOrderId): self { $this->providerOrderId = $providerOrderId; return $this; } public function getPaymentProviderId(): ?int { return $this->paymentProviderId; } public function setPaymentProviderId(int $paymentProviderId): self { $this->paymentProviderId = $paymentProviderId; return $this; } public function getReferenceId(): ?string { return $this->referenceId; } public function setReferenceId(string $referenceId): self { $this->referenceId = $referenceId; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getMailSentAt(): ?\DateTimeInterface { return $this->mailSentAt; } public function setMailSentAt(?\DateTimeInterface $mailSentAt = null): self { $this->mailSentAt = $mailSentAt ?: new \DateTime(); return $this; } public function getNewTokenSentAt(): ?\DateTimeInterface { return $this->newTokenSentAt; } public function setNewTokenSentAt(?\DateTimeInterface $newTokenSentAt = null): self { $this->newTokenSentAt = $newTokenSentAt ?: new \DateTime(); return $this; }}