ヤミ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: Building.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\BuildingRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=BuildingRepository::class) */ class Building { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="buildings") * @ORM\JoinColumn(nullable=false) */ private $company; /** * @ORM\ManyToOne(targetEntity=Address::class) * @ORM\JoinColumn(nullable=false) */ private $address; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) */ private $picture1; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) */ private $picture2; /** * @ORM\ManyToOne(targetEntity=MediaObject::class) */ private $picture3; /** * @ORM\Column(type="string", length=255) */ private $designation; /** * @ORM\Column(type="decimal", precision=60, scale=10) */ private $area; /** * @ORM\Column(type="integer") */ private $numberOfPieces; /** * @ORM\Column(type="string", length=255) */ private $code; /** * @ORM\ManyToOne(targetEntity=BuildingType::class, inversedBy="buildings") * @ORM\JoinColumn(nullable=false) */ private $type; /** * @ORM\ManyToOne(targetEntity=User::class) */ private $createdBy; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\OneToMany(targetEntity=Room::class, mappedBy="building", orphanRemoval=true) */ private $rooms; /** * @ORM\ManyToOne(targetEntity=BuildingOption::class) */ private $options; /** * @ORM\Column(type="text", nullable=true) */ private $description; /** * @ORM\Column(type="boolean", nullable=true) */ private $active; public function getId(): ?int { return $this->id; } public function __construct() { $this->active = false; $this->createdAt = new \DateTime( ); $this->rooms = new ArrayCollection(); } public function getCompany(): ?Company { return $this->company; } public function setCompany(?Company $company): self { $this->company = $company; return $this; } public function getAddress(): ?Address { return $this->address; } public function setAddress(?Address $address): self { $this->address = $address; return $this; } public function getPicture1(): ?MediaObject { return $this->picture1; } public function setPicture1(?MediaObject $picture1): self { $this->picture1 = $picture1; return $this; } public function getPicture2(): ?MediaObject { return $this->picture2; } public function setPicture2(?MediaObject $picture2): self { $this->picture2 = $picture2; return $this; } public function getPicture3(): ?MediaObject { return $this->picture3; } public function setPicture3(?MediaObject $picture3): self { $this->picture3 = $picture3; return $this; } public function getDesignation(): ?string { return $this->designation; } public function setDesignation(string $designation): self { $this->designation = $designation; return $this; } public function getArea(): ?string { return $this->area; } public function setArea(string $area): self { $this->area = $area; return $this; } public function getNumberOfPieces(): ?int { return $this->numberOfPieces; } public function setNumberOfPieces(int $numberOfPieces): self { $this->numberOfPieces = $numberOfPieces; return $this; } public function getCode(): ?string { return $this->code; } public function setCode(string $code): self { $this->code = $code; return $this; } public function getType(): ?BuildingType { return $this->type; } public function setType(?BuildingType $type): self { $this->type = $type; return $this; } public function getCreatedBy(): ?User { return $this->createdBy; } public function setCreatedBy(?User $createdBy): self { $this->createdBy = $createdBy; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } /** * @return Collection|Room[] */ public function getRooms(): Collection { return $this->rooms; } public function addRoom(Room $room): self { if (!$this->rooms->contains($room)) { $this->rooms[] = $room; $room->setBuilding($this); } return $this; } public function removeRoom(Room $room): self { if ($this->rooms->contains($room)) { $this->rooms->removeElement($room); // set the owning side to null (unless already changed) if ($room->getBuilding() === $this) { $room->setBuilding(null); } } return $this; } public function getOptions(): ?BuildingOption { return $this->options; } public function setOptions(?BuildingOption $options): self { $this->options = $options; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function __toString() { // TODO: Implement __toString() method. return $this->designation." - ".$this->getCompany()->getCompanyName(); } public function isActive(): ?bool { return $this->active; } public function setActive(?bool $active): self { $this->active = $active; return $this; } }
Coded With 💗 by
0x6ick