src/Entity/RefundReason.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity()
  6.  * @ORM\Table(name="refund_reason")
  7.  */
  8. class RefundReason
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private ?int $id null;
  16.     /** 
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private ?string $name null;
  20.     /** 
  21.      * @ORM\Column(type="text", nullable=true)
  22.      */
  23.     private ?string $description null;
  24.     /**
  25.      * @ORM\Column(type="integer", options={"default": 0})
  26.      */
  27.     private int $displayOrder 0;
  28.     public function __toString(): string
  29.     {
  30.         return (string) ($this->name ?? '');
  31.     }
  32.     // --- Getters / Setters ---
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getName(): ?string
  38.     {
  39.         return $this->name;
  40.     }
  41.     public function setName(string $name): self
  42.     {
  43.         $this->name $name;
  44.         return $this;
  45.     }
  46.     public function getDescription(): ?string
  47.     {
  48.         return $this->description;
  49.     }
  50.     public function setDescription(?string $description): self
  51.     {
  52.         $this->description $description;
  53.         return $this;
  54.     }
  55.     public function getDisplayOrder(): int
  56.     {
  57.         return $this->displayOrder;
  58.     }
  59.     public function setDisplayOrder(int $displayOrder): self
  60.     {
  61.         $this->displayOrder $displayOrder;
  62.         return $this;
  63.     }
  64. }