src/Entity/LepDiiaOperRozp.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\LepDiiaOperRozpRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassLepDiiaOperRozpRepository::class)]
  7. #[ApiResource(
  8.     order: ['order' => 'DESC']
  9. )]
  10. class LepDiiaOperRozp
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $name null;
  18.     #[ORM\Column]
  19.     private ?int $orders null;
  20.     #[ORM\Column]
  21.     private ?int $active 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 getOrders(): ?int
  36.     {
  37.         return $this->orders;
  38.     }
  39.     public function setOrders(int $orders): static
  40.     {
  41.         $this->orders $orders;
  42.         return $this;
  43.     }
  44.     public function getActive(): ?int
  45.     {
  46.         return $this->active;
  47.     }
  48.     public function setActive(int $active): static
  49.     {
  50.         $this->active $active;
  51.         return $this;
  52.     }
  53. }