ヤミ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: BookingRoom.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\BookingRoomRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=BookingRoomRepository::class) */ class BookingRoom { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="bookingRooms") * @ORM\JoinColumn(nullable=false) */ private $user; /** * @ORM\ManyToOne(targetEntity=Town::class) */ private $comingFrom; /** * @ORM\Column(type="datetime") */ private $arrivalDate; /** * @ORM\Column(type="datetime") */ private $departureDate; /** * @ORM\Column(type="integer", nullable=true) */ private $child; /** * @ORM\Column(type="integer", nullable=true) */ private $adult; /** * @ORM\ManyToOne(targetEntity=Room::class, inversedBy="bookingRooms") * @ORM\JoinColumn(nullable=false) */ private $room; /** * @ORM\Column(type="datetime_immutable") */ private $createdAt; /** * @ORM\OneToOne(targetEntity=Payment::class, mappedBy="booking", cascade={"persist", "remove"}) */ private $payment; /** * @ORM\Column(type="boolean", nullable=true) */ private $hasVue; /** * @ORM\Column(type="boolean", nullable=true, options={"default" = 0}) */ private $paymentAsBeenConfirmed; /** * @ORM\Column(type="string", length=1000, nullable=true) */ private $paymentLink; /** * @ORM\Column(type="string", length=1000, nullable=true) */ private $paymentNotificationLink; public function getId(): ?int { return $this->id; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getComingFrom(): ?Town { return $this->comingFrom; } public function setComingFrom(?Town $comingFrom): self { $this->comingFrom = $comingFrom; return $this; } public function getArrivalDate(): ?\DateTimeInterface { return $this->arrivalDate; } public function setArrivalDate(\DateTimeInterface $arrivalDate): self { $this->arrivalDate = $arrivalDate; return $this; } public function getDepartureDate(): ?\DateTimeInterface { return $this->departureDate; } public function setDepartureDate(\DateTimeInterface $departureDate): self { $this->departureDate = $departureDate; return $this; } public function getChild(): ?int { return $this->child; } public function setChild(?int $child): self { $this->child = $child; return $this; } public function getAdult(): ?int { return $this->adult; } public function setAdult(?int $adult): self { $this->adult = $adult; return $this; } public function getRoom(): ?Room { return $this->room; } public function setRoom(?Room $room): self { $this->room = $room; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(\DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getPayment(): ?Payment { return $this->payment; } public function setPayment(Payment $payment): self { // set the owning side of the relation if necessary if ($payment->getBooking() !== $this) { $payment->setBooking($this); } $this->payment = $payment; return $this; } public function __construct() { $this->createdAt = new \DateTimeImmutable( ); $this->hasVue = false; $this->paymentAsBeenConfirmed = false; } public function __toString() { // TODO: Implement __toString() method. if(!is_null($this->getPayment())){ if(!is_null($this->getPayment()->getPaymentOption())){ return $this->getRoom()->getBuilding()->getCompany()->getCompanyName() ." ".$this->getRoom()->getBuilding()->getDesignation() ." Room:".$this->getRoom()->getCode() ." Arrival:".$this->getArrivalDate()->format('Y-m-d H:i:s') ." Depart:".$this->getDepartureDate()->format('Y-m-d H:i:s') ." Via ".$this->getPayment()->getPaymentOption()->getPaymentName() ." (".$this->getPayment()->getAmount()." xaf)"; }else{ return $this->getRoom()->getBuilding()->getCompany()->getCompanyName() ." ".$this->getRoom()->getBuilding()->getDesignation() ." Room:".$this->getRoom()->getCode() ." Arrival:".$this->getArrivalDate()->format('Y-m-d H:i:s') ." Depart:".$this->getDepartureDate()->format('Y-m-d H:i:s') ." (".$this->getPayment()->getAmount()." xaf)"; } }else{ return $this->getRoom()->getBuilding()->getCompany()->getCompanyName() ." ".$this->getRoom()->getBuilding()->getDesignation() ." Room:".$this->getRoom()->getCode() ." Arrival:".$this->getArrivalDate()->format('Y-m-d H:i:s') ." Depart:".$this->getDepartureDate()->format('Y-m-d H:i:s') ; } } public function isHasVue(): ?bool { return $this->hasVue; } public function setHasVue(?bool $hasVue): self { $this->hasVue = $hasVue; return $this; } public function isPaymentAsBeenConfirmed(): ?bool { return $this->paymentAsBeenConfirmed; } public function setPaymentAsBeenConfirmed(?bool $paymentAsBeenConfirmed): self { $this->paymentAsBeenConfirmed = $paymentAsBeenConfirmed; return $this; } public function getPaymentLink(): ?string { return $this->paymentLink; } public function setPaymentLink(?string $paymentLink): self { $this->paymentLink = $paymentLink; return $this; } public function getPaymentNotificationLink(): ?string { return $this->paymentNotificationLink; } public function setPaymentNotificationLink(?string $paymentNotificationLink): self { $this->paymentNotificationLink = $paymentNotificationLink; return $this; } }
Coded With 💗 by
0x6ick