<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass="App\Repository\PaymentGatewayRepository") * @ORM\Table(name="payment_gateways") * @ORM\HasLifecycleCallbacks */class PaymentGateway{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=100) */ private $name; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $logo; /** * @ORM\Column(type="boolean", options={"default": true}) */ private $isActive = true; /** * @ORM\Column(type="text", nullable=true) */ private $description; /** * @ORM\Column(type="integer", options={"default": 0}) */ private $displayOrder = 0; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** * @ORM\PrePersist */ public function setCreatedAtValue(): void { $this->createdAt = new \DateTime(); } /** * @ORM\PreUpdate */ public function setUpdatedAtValue(): void { $this->updatedAt = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getLogo(): ?string { return $this->logo; } public function setLogo(?string $logo): self { $this->logo = $logo; return $this; } public function getIsActive(): ?bool { return $this->isActive; } public function setIsActive(bool $isActive): self { $this->isActive = $isActive; return $this; } public function getDescription(): ?string { return $this->description; } public function setDescription(?string $description): self { $this->description = $description; return $this; } public function getDisplayOrder(): ?int { return $this->displayOrder; } public function setDisplayOrder(int $displayOrder): self { $this->displayOrder = $displayOrder; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUpdatedAt(): ?\DateTimeInterface { return $this->updatedAt; } public function setUpdatedAt(?\DateTimeInterface $updatedAt): self { $this->updatedAt = $updatedAt; return $this; }}