ヤミ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: Coupon.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\CouponRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use ApiPlatform\Core\Annotation\ApiFilter; use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\RangeFilter; use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter; use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\OrderFilter; use Symfony\Component\Serializer\Annotation\Groups; use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\DateFilter; use ApiPlatform\Core\Annotation\ApiProperty; /** * @ApiResource() * @ORM\Entity(repositoryClass=CouponRepository::class) * * @ApiFilter(SearchFilter::class, * properties={ * "couponName": "exact", * }) * * @ApiFilter(DateFilter::class, * properties={ * "expireAt": "exact", * }) */ class Coupon { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $couponName; /** * @ORM\Column(type="integer") */ private $couponValue; /** * @ORM\ManyToOne(targetEntity=User::class) * @ORM\JoinColumn(nullable=false) */ private $createdBy; /** * @ORM\Column(type="datetime") */ private $expireAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $createAt; /** * @ORM\Column(type="boolean") */ private $enable; public function getId(): ?int { return $this->id; } public function getCouponName(): ?string { return $this->couponName; } public function setCouponName(string $couponName): self { $this->couponName = $couponName; return $this; } public function getCouponValue(): ?int { return $this->couponValue; } public function setCouponValue(int $couponValue): self { $this->couponValue = $couponValue; return $this; } public function getCreatedBy(): ?User { return $this->createdBy; } public function setCreatedBy(?User $createdBy): self { $this->createdBy = $createdBy; return $this; } public function getExpireAt(): ?\DateTimeInterface { return $this->expireAt; } public function setExpireAt(\DateTimeInterface $expireAt): self { $this->expireAt = $expireAt; return $this; } public function getCreateAt(): ?\DateTimeInterface { return $this->createAt; } public function setCreateAt(?\DateTimeInterface $createAt): self { $this->createAt = $createAt; return $this; } public function getEnable(): ?bool { return $this->enable; } public function setEnable(bool $enable): self { $this->enable = $enable; return $this; } public function __construct() { $this->createdAt = new \DateTime( ); } public function __toString() { // TODO: Implement __toString() method. return "(".$this->id.")". $this->couponName; } }
Coded With 💗 by
0x6ick