<?php
namespace App\Entity;
use ApiPlatform\Metadata\ApiResource;
use App\Repository\BlogPodiiRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use ApiPlatform\Metadata\Get;
use ApiPlatform\Metadata\GetCollection;
use Symfony\Component\Serializer\Annotation\Groups;
use ApiPlatform\Metadata\ApiFilter;
use ApiPlatform\Doctrine\Orm\Filter\SearchFilter;
#[ORM\Entity(repositoryClass: BlogPodiiRepository::class)]
#[ApiResource(
normalizationContext: ['groups' => ['read']],
denormalizationContext: ['groups' => ['write']],
)]
#[Get]
#[GetCollection]
#[ApiFilter(SearchFilter::class, properties: ['actor_id' => 'exact', 'group_type' => 'exact'])]
class BlogPodii
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[Groups(['read'])]
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date_event = null;
#[Groups(['read'])]
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date_plan_in = null;
#[Groups(['read'])]
#[ORM\Column(length: 250, nullable: true)]
private ?string $type_off = null;
#[Groups(['read'])]
#[ORM\Column(length: 250, nullable: true)]
private ?string $street_name = null;
#[Groups(['read'])]
#[ORM\Column(length: 250, nullable: true)]
private ?string $city_name = null;
#[Groups(['read'])]
#[ORM\Column(length: 250, nullable: true)]
private ?string $region = null;
#[Groups(['read'])]
#[ORM\Column(length: 5000, nullable: true)]
private ?string $buildings = null;
#[ORM\Column]
private ?int $id_event = null;
#[ORM\Column(length: 250, nullable: true)]
private ?string $actor_id = null;
#[ORM\Column(length: 250, nullable: true)]
private ?string $type_event = null;
#[ORM\Column(length: 250, nullable: true)]
private ?string $name_otg = null;
#[ORM\Column(nullable: true)]
private ?float $coor_lat = null;
#[ORM\Column]
private ?float $coor_lng = null;
#[ORM\Column]
private ?int $id_tp = null;
#[ORM\Column(length: 250, nullable: true)]
private ?string $name_dno = null;
#[ORM\Column(length: 45, nullable: true)]
private ?string $blog_podiicol = null;
#[Groups(['read'])]
#[ORM\Column(length: 250, nullable: true)]
private ?string $prychuna = null;
#[ORM\Column(length: 45, nullable: true)]
private ?string $group_type = null;
public function getId(): ?int
{
return $this->id;
}
public function getDateEvent(): ?\DateTimeInterface
{
return $this->date_event;
}
public function setDateEvent(?\DateTimeInterface $date_event): self
{
$this->date_event = $date_event;
return $this;
}
public function getDatePlanIn(): ?\DateTimeInterface
{
return $this->date_plan_in;
}
public function setDatePlanIn(?\DateTimeInterface $date_plan_in): self
{
$this->date_plan_in = $date_plan_in;
return $this;
}
public function getTypeOff(): ?string
{
return $this->type_off;
}
public function setTypeOff(?string $type_off): self
{
$this->type_off = $type_off;
return $this;
}
public function getStreetName(): ?string
{
return $this->street_name;
}
public function setStreetName(?string $street_name): self
{
$this->street_name = $street_name;
return $this;
}
public function getCityName(): ?string
{
return $this->city_name;
}
public function setCityName(?string $city_name): self
{
$this->city_name = $city_name;
return $this;
}
public function getRegion(): ?string
{
return $this->region;
}
public function setRegion(?string $region): self
{
$this->region = $region;
return $this;
}
public function getBuildings(): ?string
{
return $this->buildings;
}
public function setBuildings(?string $buildings): self
{
$this->buildings = $buildings;
return $this;
}
public function getIdEvent(): ?int
{
return $this->id_event;
}
public function setIdEvent(int $id_event): self
{
$this->id_event = $id_event;
return $this;
}
public function getActorId(): ?string
{
return $this->actor_id;
}
public function setActorId(?string $actor_id): self
{
$this->actor_id = $actor_id;
return $this;
}
public function getTypeEvent(): ?string
{
return $this->type_event;
}
public function setTypeEvent(?string $type_event): self
{
$this->type_event = $type_event;
return $this;
}
public function getNameOtg(): ?string
{
return $this->name_otg;
}
public function setNameOtg(?string $name_otg): self
{
$this->name_otg = $name_otg;
return $this;
}
public function getCoorLat(): ?float
{
return $this->coor_lat;
}
public function setCoorLat(?float $coor_lat): self
{
$this->coor_lat = $coor_lat;
return $this;
}
public function getCoorLng(): ?float
{
return $this->coor_lng;
}
public function setCoorLng(float $coor_lng): self
{
$this->coor_lng = $coor_lng;
return $this;
}
public function getIdTp(): ?int
{
return $this->id_tp;
}
public function setIdTp(int $id_tp): self
{
$this->id_tp = $id_tp;
return $this;
}
public function getNameDno(): ?string
{
return $this->name_dno;
}
public function setNameDno(?string $name_dno): self
{
$this->name_dno = $name_dno;
return $this;
}
public function getBlogPodiicol(): ?string
{
return $this->blog_podiicol;
}
public function setBlogPodiicol(?string $blog_podiicol): self
{
$this->blog_podiicol = $blog_podiicol;
return $this;
}
public function getPrychuna(): ?string
{
return $this->prychuna;
}
public function setPrychuna(?string $prychuna): self
{
$this->prychuna = $prychuna;
return $this;
}
public function getGroupType(): ?string
{
return $this->group_type;
}
public function setGroupType(?string $group_type): self
{
$this->group_type = $group_type;
return $this;
}
}