src/Entity/DeliveryDuration.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\DeliveryDurationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassDeliveryDurationRepository::class)]
  6. #[ORM\Table(name"dtb_delivery_duration")]
  7. class DeliveryDuration
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $name null;
  15.     #[ORM\Column]
  16.     private ?int $duration null;
  17.     #[ORM\Column]
  18.     private ?int $sort_no null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $discriminator_type null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getName(): ?string
  26.     {
  27.         return $this->name;
  28.     }
  29.     public function setName(?string $name): static
  30.     {
  31.         $this->name $name;
  32.         return $this;
  33.     }
  34.     public function getDuration(): ?int
  35.     {
  36.         return $this->duration;
  37.     }
  38.     public function setDuration(int $duration): static
  39.     {
  40.         $this->duration $duration;
  41.         return $this;
  42.     }
  43.     public function getSortNo(): ?int
  44.     {
  45.         return $this->sort_no;
  46.     }
  47.     public function setSortNo(int $sort_no): static
  48.     {
  49.         $this->sort_no $sort_no;
  50.         return $this;
  51.     }
  52.     public function getDiscriminatorType(): ?string
  53.     {
  54.         return $this->discriminator_type;
  55.     }
  56.     public function setDiscriminatorType(string $discriminator_type): static
  57.     {
  58.         $this->discriminator_type $discriminator_type;
  59.         return $this;
  60.     }
  61. }