ヤミRoot VoidGate
User / IP
:
216.73.216.81
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: Testimony.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\TestimonyRepository; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=TestimonyRepository::class) */ class Testimony { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\OneToOne(targetEntity=MediaObject::class, cascade={"persist", "remove"}) */ private $picture; /** * @ORM\Column(type="string", length=255) */ public $client; /** * @ORM\Column(type="string", length=1255) */ public $message; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $contact; /** * @ORM\Column(type="integer") */ private $appreciation; /** * @ORM\Column(type="boolean") */ private $approved; /** * @ORM\Column(type="datetime",nullable=true) */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=User::class) */ private $approvedBy; public function getId(): ?int { return $this->id; } public function getPicture(): ?MediaObject { return $this->picture; } public function setPicture(?MediaObject $picture): self { $this->picture = $picture; return $this; } public function getClient(): ?string { return $this->client; } public function setClient(string $client): self { $this->client = $client; return $this; } public function getMessage(): ?string { return $this->message; } public function setMessage(string $message): self { $this->message = $message; return $this; } public function getContact(): ?string { return $this->contact; } public function setContact(?string $contact): self { $this->contact = $contact; return $this; } public function getAppreciation(): ?int { return $this->appreciation; } public function setAppreciation(int $appreciation): self { if($appreciation>10){ $this->appreciation =10; }else if($appreciation<0){ $this->appreciation =0; }else{ $this->appreciation = $appreciation; } return $this; } public function getApproved(): ?bool { return $this->approved; } public function setApproved(bool $approved): self { $this->approved = $approved; return $this; } public function __construct() { $this->createdAt = new \DateTime( ); } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function getData(): ?Testimony { return $this; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getApprovedBy(): ?User { return $this->approvedBy; } public function setApprovedBy(?User $approvedBy): self { $this->approvedBy = $approvedBy; return $this; } public function __toString() { // TODO: Implement __toString() method. return "(".$this->id.")". substr($this->getMessage(),0,20)."..."; } }
Coded With 💗 by
0x6ick