src/Entity/PaymentGateway.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\PaymentGatewayRepository")
  6.  * @ORM\Table(name="payment_gateways")
  7.  * @ORM\HasLifecycleCallbacks
  8.  */
  9. class PaymentGateway
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=100)
  19.      */
  20.     private $name;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $logo;
  25.     /**
  26.      * @ORM\Column(type="boolean", options={"default": true})
  27.      */
  28.     private $isActive true;
  29.     /**
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     private $description;
  33.     /**
  34.      * @ORM\Column(type="integer", options={"default": 0})
  35.      */
  36.     private $displayOrder 0;
  37.     /**
  38.      * @ORM\Column(type="datetime")
  39.      */
  40.     private $createdAt;
  41.     /**
  42.      * @ORM\Column(type="datetime", nullable=true)
  43.      */
  44.     private $updatedAt;
  45.     /**
  46.      * @ORM\PrePersist
  47.      */
  48.     public function setCreatedAtValue(): void
  49.     {
  50.         $this->createdAt = new \DateTime();
  51.     }
  52.     /**
  53.      * @ORM\PreUpdate
  54.      */
  55.     public function setUpdatedAtValue(): void
  56.     {
  57.         $this->updatedAt = new \DateTime();
  58.     }
  59.     public function getId(): ?int
  60.     {
  61.         return $this->id;
  62.     }
  63.     public function getName(): ?string
  64.     {
  65.         return $this->name;
  66.     }
  67.     public function setName(string $name): self
  68.     {
  69.         $this->name $name;
  70.         return $this;
  71.     }
  72.     public function getLogo(): ?string
  73.     {
  74.         return $this->logo;
  75.     }
  76.     public function setLogo(?string $logo): self
  77.     {
  78.         $this->logo $logo;
  79.         return $this;
  80.     }
  81.     public function getIsActive(): ?bool
  82.     {
  83.         return $this->isActive;
  84.     }
  85.     public function setIsActive(bool $isActive): self
  86.     {
  87.         $this->isActive $isActive;
  88.         return $this;
  89.     }
  90.     public function getDescription(): ?string
  91.     {
  92.         return $this->description;
  93.     }
  94.     public function setDescription(?string $description): self
  95.     {
  96.         $this->description $description;
  97.         return $this;
  98.     }
  99.     public function getDisplayOrder(): ?int
  100.     {
  101.         return $this->displayOrder;
  102.     }
  103.     public function setDisplayOrder(int $displayOrder): self
  104.     {
  105.         $this->displayOrder $displayOrder;
  106.         return $this;
  107.     }
  108.     public function getCreatedAt(): ?\DateTimeInterface
  109.     {
  110.         return $this->createdAt;
  111.     }
  112.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  113.     {
  114.         $this->createdAt $createdAt;
  115.         return $this;
  116.     }
  117.     public function getUpdatedAt(): ?\DateTimeInterface
  118.     {
  119.         return $this->updatedAt;
  120.     }
  121.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  122.     {
  123.         $this->updatedAt $updatedAt;
  124.         return $this;
  125.     }
  126. }