src/Entity/Region.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\RegionRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClassRegionRepository::class)]
  10. class Region implements EntityInterface
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $fias_id null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $name null;
  20.     #[ORM\Column(typeTypes::SMALLINT)]
  21.     private ?int $prior null;
  22.     #[ORM\Column]
  23.     private ?bool $visible null;
  24.     public function __construct()
  25.     {
  26.     }
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getFiasId(): ?string
  32.     {
  33.         return $this->fias_id;
  34.     }
  35.     public function setFiasId(string $fias_id): self
  36.     {
  37.         $this->fias_id $fias_id;
  38.         return $this;
  39.     }
  40.     public function getName(): ?string
  41.     {
  42.         return $this->name;
  43.     }
  44.     public function setName(string $name): self
  45.     {
  46.         $this->name $name;
  47.         return $this;
  48.     }
  49.     public function getPrior(): ?int
  50.     {
  51.         return $this->prior;
  52.     }
  53.     public function setPrior(int $prior): self
  54.     {
  55.         $this->prior $prior;
  56.         return $this;
  57.     }
  58.     public function isVisible(): ?bool
  59.     {
  60.         return $this->visible;
  61.     }
  62.     public function setVisible(bool $visible): self
  63.     {
  64.         $this->visible $visible;
  65.         return $this;
  66.     }
  67. }