src/Entity/LepDiiaPidrozdil.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\LepDiiaPidrozdilRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassLepDiiaPidrozdilRepository::class)]
  7. #[ApiResource]
  8. class LepDiiaPidrozdil
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $name null;
  16.     #[ORM\Column(length500)]
  17.     private ?string $email null;
  18.     #[ORM\Column(length10)]
  19.     private ?string $type null;
  20.     #[ORM\Column]
  21.     private ?int $orders null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getName(): ?string
  27.     {
  28.         return $this->name;
  29.     }
  30.     public function setName(string $name): static
  31.     {
  32.         $this->name $name;
  33.         return $this;
  34.     }
  35.     public function getEmail(): ?string
  36.     {
  37.         return $this->email;
  38.     }
  39.     public function setEmail(string $email): static
  40.     {
  41.         $this->email $email;
  42.         return $this;
  43.     }
  44.     public function getType(): ?string
  45.     {
  46.         return $this->type;
  47.     }
  48.     public function setType(string $type): static
  49.     {
  50.         $this->type $type;
  51.         return $this;
  52.     }
  53.     public function getOrders(): ?int
  54.     {
  55.         return $this->orders;
  56.     }
  57.     public function setOrders(int $orders): static
  58.     {
  59.         $this->orders $orders;
  60.         return $this;
  61.     }
  62. }