ヤミ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: Room.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\RoomRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=RoomRepository::class) */ class Room { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $code; /** * @ORM\ManyToOne(targetEntity=RoomOption::class) * @ORM\JoinColumn(nullable=false) */ private $options; /** * @ORM\Column(type="integer") */ private $numberOfPiece; /** * @ORM\Column(type="string", length=2000, nullable=true) */ private $description; /** * @ORM\Column(type="integer") */ private $cost; /** * @ORM\Column(type="integer") */ private $capacity; /** * @ORM\ManyToOne(targetEntity=Building::class, inversedBy="rooms") * @ORM\JoinColumn(nullable=false) */ private $building; /** * @ORM\ManyToOne(targetEntity=User::class) */ private $createdBy; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=RoomType::class) */ private $roomType; /** * @ORM\OneToMany(targetEntity=BookingRoom::class, mappedBy="room") */ private $bookingRooms; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) * @ORM\JoinColumn(nullable=true) */ private $picture1; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) * @ORM\JoinColumn(nullable=true) */ private $picture; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) * @ORM\JoinColumn(nullable=true) */ private $picture2; /** * @ORM\Column(type="boolean") */ private $isFree; /** * @ORM\Column(type="integer", nullable=true) */ private $costPerMonth; /** * @ORM\Column(type="boolean", nullable=true) */ private $payBefore; public function __construct() { $this->bookingRooms = new ArrayCollection(); $this->isFree = true; $this->payBefore = false; } public function getId(): ?int { return $this->id; } public function getCode(): ?string { return $this->code; } public function setCode(string $code): self { $this->code = $code; return $this; } public function getOptions(): ?RoomOption { return $this->options; } public function setOptions(?RoomOption $options): self { $this->options = $options; return $this; } public function getNumberOfPiece(): ?int { return $this->numberOfPiece; } public function setNumberOfPiece(int $numberOfPiece): self { $this->numberOfPiece = $numberOfPiece; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getCost(): ?int { return $this->cost; } public function setCost(int $cost): self { $this->cost = $cost; return $this; } public function getCapacity(): ?int { return $this->capacity; } public function setCapacity(int $capacity): self { $this->capacity = $capacity; return $this; } public function getBuilding(): ?Building { return $this->building; } public function setBuilding(?Building $building): self { $this->building = $building; return $this; } public function getCreatedBy(): ?User { return $this->createdBy; } public function setCreatedBy(?User $createdBy): self { $this->createdBy = $createdBy; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function __toString() { // TODO: Implement __toString() method. return $this->code." ".$this->getBuilding()->getDesignation()." (".$this->getCost()." Xaf)"; } public function getRoomType(): ?RoomType { return $this->roomType; } public function setRoomType(?RoomType $roomType): self { $this->roomType = $roomType; return $this; } /** * @return Collection<int, BookingRoom> */ public function getBookingRooms(): Collection { return $this->bookingRooms; } public function addBookingRoom(BookingRoom $bookingRoom): self { if (!$this->bookingRooms->contains($bookingRoom)) { $this->bookingRooms[] = $bookingRoom; $bookingRoom->setRoom($this); } return $this; } public function removeBookingRoom(BookingRoom $bookingRoom): self { if ($this->bookingRooms->removeElement($bookingRoom)) { // set the owning side to null (unless already changed) if ($bookingRoom->getRoom() === $this) { $bookingRoom->setRoom(null); } } return $this; } public function getPicture1(): ?MediaObject { return $this->picture1; } public function setPicture1(?MediaObject $picture1): self { $this->picture1 = $picture1; return $this; } public function getPicture(): ?MediaObject { return $this->picture; } public function setPicture(?MediaObject $picture): self { $this->picture = $picture; return $this; } public function getPicture2(): ?MediaObject { return $this->picture2; } public function setPicture2(?MediaObject $picture2): self { $this->picture2 = $picture2; return $this; } public function isIsFree(): ?bool { return $this->isFree; } public function setIsFree(bool $isFree): self { $this->isFree = $isFree; return $this; } public function getCostPerMonth(): ?int { return $this->costPerMonth; } public function setCostPerMonth(?int $costPerMonth): self { $this->costPerMonth = $costPerMonth; return $this; } public function isPayBefore(): ?bool { return $this->payBefore; } public function setPayBefore(?bool $payBefore): self { $this->payBefore = $payBefore; return $this; } }
Coded With 💗 by
0x6ick