src/Entity/BookingEventInvoiceStatus.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InvoiceStatusRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassInvoiceStatusRepository::class)]
  6. class BookingEventInvoiceStatus
  7. {
  8.     use IdentifiableTrait;
  9.     #[ORM\Column(length50)]
  10.     private ?string $name null;
  11.     #[ORM\Column(length50)]
  12.     private ?string $slug null;
  13.     #[ORM\Column(nullabletrue)]
  14.     private ?int $position null;
  15.     public function getId(): ?int
  16.     {
  17.         return $this->id;
  18.     }
  19.     public function __toString(): string
  20.     {
  21.         return $this->name;
  22.     }
  23.     public function getName(): ?string
  24.     {
  25.         return $this->name;
  26.     }
  27.     public function setName(string $name): static
  28.     {
  29.         $this->name $name;
  30.         return $this;
  31.     }
  32.     public function getSlug(): ?string
  33.     {
  34.         return $this->slug;
  35.     }
  36.     public function setSlug(string $slug): static
  37.     {
  38.         $this->slug $slug;
  39.         return $this;
  40.     }
  41.     public function getPosition(): ?int
  42.     {
  43.         return $this->position;
  44.     }
  45.     public function setPosition(?int $position): static
  46.     {
  47.         $this->position $position;
  48.         return $this;
  49.     }
  50. }