src/Entity/BlogPodii.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Metadata\ApiResource;
  4. use App\Repository\BlogPodiiRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use ApiPlatform\Metadata\Get;
  8. use ApiPlatform\Metadata\GetCollection;
  9. use Symfony\Component\Serializer\Annotation\Groups;
  10. use ApiPlatform\Metadata\ApiFilter;
  11. use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;
  12. #[ORM\Entity(repositoryClassBlogPodiiRepository::class)]
  13. #[ApiResource(
  14.     normalizationContext: ['groups' => ['read']],
  15.     denormalizationContext: ['groups' => ['write']],
  16. )]
  17. #[Get]
  18. #[GetCollection]
  19. #[ApiFilter(SearchFilter::class, properties: ['actor_id' => 'exact''group_type' => 'exact'])]
  20. class BlogPodii
  21. {
  22.     #[ORM\Id]
  23.     #[ORM\GeneratedValue]
  24.     #[ORM\Column]
  25.     private ?int $id null;
  26.     #[Groups(['read'])]
  27.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  28.     private ?\DateTimeInterface $date_event null;
  29.     #[Groups(['read'])]
  30.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  31.     private ?\DateTimeInterface $date_plan_in null;
  32.     #[Groups(['read'])]
  33.     #[ORM\Column(length250nullabletrue)]
  34.     private ?string $type_off null;
  35.     #[Groups(['read'])]
  36.     #[ORM\Column(length250nullabletrue)]
  37.     private ?string $street_name null;
  38.     #[Groups(['read'])]
  39.     #[ORM\Column(length250nullabletrue)]
  40.     private ?string $city_name null;
  41.     #[Groups(['read'])]
  42.     #[ORM\Column(length250nullabletrue)]
  43.     private ?string $region null;
  44.     #[Groups(['read'])]
  45.     #[ORM\Column(length5000nullabletrue)]
  46.     private ?string $buildings null;
  47.     #[ORM\Column]
  48.     private ?int $id_event null;
  49.     #[ORM\Column(length250nullabletrue)]
  50.     private ?string $actor_id null;
  51.     #[ORM\Column(length250nullabletrue)]
  52.     private ?string $type_event null;
  53.     #[ORM\Column(length250nullabletrue)]
  54.     private ?string $name_otg null;
  55.     #[ORM\Column(nullabletrue)]
  56.     private ?float $coor_lat null;
  57.     #[ORM\Column]
  58.     private ?float $coor_lng null;
  59.     #[ORM\Column]
  60.     private ?int $id_tp null;
  61.     #[ORM\Column(length250nullabletrue)]
  62.     private ?string $name_dno null;
  63.     #[ORM\Column(length45nullabletrue)]
  64.     private ?string $blog_podiicol null;
  65.     #[Groups(['read'])]
  66.     #[ORM\Column(length250nullabletrue)]
  67.     private ?string $prychuna null;
  68.     #[ORM\Column(length45nullabletrue)]
  69.     private ?string $group_type null;
  70.     public function getId(): ?int
  71.     {
  72.         return $this->id;
  73.     }
  74.     public function getDateEvent(): ?\DateTimeInterface
  75.     {
  76.         return $this->date_event;
  77.     }
  78.     public function setDateEvent(?\DateTimeInterface $date_event): self
  79.     {
  80.         $this->date_event $date_event;
  81.         return $this;
  82.     }
  83.     public function getDatePlanIn(): ?\DateTimeInterface
  84.     {
  85.         return $this->date_plan_in;
  86.     }
  87.     public function setDatePlanIn(?\DateTimeInterface $date_plan_in): self
  88.     {
  89.         $this->date_plan_in $date_plan_in;
  90.         return $this;
  91.     }
  92.     public function getTypeOff(): ?string
  93.     {
  94.         return $this->type_off;
  95.     }
  96.     public function setTypeOff(?string $type_off): self
  97.     {
  98.         $this->type_off $type_off;
  99.         return $this;
  100.     }
  101.     public function getStreetName(): ?string
  102.     {
  103.         return $this->street_name;
  104.     }
  105.     public function setStreetName(?string $street_name): self
  106.     {
  107.         $this->street_name $street_name;
  108.         return $this;
  109.     }
  110.     public function getCityName(): ?string
  111.     {
  112.         return $this->city_name;
  113.     }
  114.     public function setCityName(?string $city_name): self
  115.     {
  116.         $this->city_name $city_name;
  117.         return $this;
  118.     }
  119.     public function getRegion(): ?string
  120.     {
  121.         return $this->region;
  122.     }
  123.     public function setRegion(?string $region): self
  124.     {
  125.         $this->region $region;
  126.         return $this;
  127.     }
  128.     public function getBuildings(): ?string
  129.     {
  130.         return $this->buildings;
  131.     }
  132.     public function setBuildings(?string $buildings): self
  133.     {
  134.         $this->buildings $buildings;
  135.         return $this;
  136.     }
  137.     public function getIdEvent(): ?int
  138.     {
  139.         return $this->id_event;
  140.     }
  141.     public function setIdEvent(int $id_event): self
  142.     {
  143.         $this->id_event $id_event;
  144.         return $this;
  145.     }
  146.     public function getActorId(): ?string
  147.     {
  148.         return $this->actor_id;
  149.     }
  150.     public function setActorId(?string $actor_id): self
  151.     {
  152.         $this->actor_id $actor_id;
  153.         return $this;
  154.     }
  155.     public function getTypeEvent(): ?string
  156.     {
  157.         return $this->type_event;
  158.     }
  159.     public function setTypeEvent(?string $type_event): self
  160.     {
  161.         $this->type_event $type_event;
  162.         return $this;
  163.     }
  164.     public function getNameOtg(): ?string
  165.     {
  166.         return $this->name_otg;
  167.     }
  168.     public function setNameOtg(?string $name_otg): self
  169.     {
  170.         $this->name_otg $name_otg;
  171.         return $this;
  172.     }
  173.     public function getCoorLat(): ?float
  174.     {
  175.         return $this->coor_lat;
  176.     }
  177.     public function setCoorLat(?float $coor_lat): self
  178.     {
  179.         $this->coor_lat $coor_lat;
  180.         return $this;
  181.     }
  182.     public function getCoorLng(): ?float
  183.     {
  184.         return $this->coor_lng;
  185.     }
  186.     public function setCoorLng(float $coor_lng): self
  187.     {
  188.         $this->coor_lng $coor_lng;
  189.         return $this;
  190.     }
  191.     public function getIdTp(): ?int
  192.     {
  193.         return $this->id_tp;
  194.     }
  195.     public function setIdTp(int $id_tp): self
  196.     {
  197.         $this->id_tp $id_tp;
  198.         return $this;
  199.     }
  200.     public function getNameDno(): ?string
  201.     {
  202.         return $this->name_dno;
  203.     }
  204.     public function setNameDno(?string $name_dno): self
  205.     {
  206.         $this->name_dno $name_dno;
  207.         return $this;
  208.     }
  209.     public function getBlogPodiicol(): ?string
  210.     {
  211.         return $this->blog_podiicol;
  212.     }
  213.     public function setBlogPodiicol(?string $blog_podiicol): self
  214.     {
  215.         $this->blog_podiicol $blog_podiicol;
  216.         return $this;
  217.     }
  218.     public function getPrychuna(): ?string
  219.     {
  220.         return $this->prychuna;
  221.     }
  222.     public function setPrychuna(?string $prychuna): self
  223.     {
  224.         $this->prychuna $prychuna;
  225.         return $this;
  226.     }
  227.     public function getGroupType(): ?string
  228.     {
  229.         return $this->group_type;
  230.     }
  231.     public function setGroupType(?string $group_type): self
  232.     {
  233.         $this->group_type $group_type;
  234.         return $this;
  235.     }
  236. }