chore: initial import for test contour
This commit is contained in:
@@ -0,0 +1,231 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Repository\FilialRepository;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Serializer\Annotation\Groups;
|
||||
|
||||
#[ORM\Entity(repositoryClass: FilialRepository::class)]
|
||||
#[ORM\HasLifecycleCallbacks]
|
||||
class Filial
|
||||
{
|
||||
#[ORM\Id]
|
||||
#[ORM\GeneratedValue]
|
||||
#[ORM\Column(type: 'integer')]
|
||||
#[Groups(['filial:read'])]
|
||||
private int $id;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(type: 'integer')]
|
||||
private int $fid;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(type: 'string', length: 255)]
|
||||
private string $name;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(type: 'string', length: 255)]
|
||||
private string $address;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(type: 'integer', nullable: true)]
|
||||
private ?int $regionId = null;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(type: 'integer', nullable: true)]
|
||||
private ?int $siteId = null;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(type: 'boolean', options: ['default' => true])]
|
||||
private bool $active = true;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(type: 'string', length: 255, nullable: true)]
|
||||
private ?string $company = null;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $shortName = null;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $phone = null;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $policy = null;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $picture = null;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $email = null;
|
||||
|
||||
#[Groups(['filial:read', 'filial:write'])]
|
||||
#[ORM\Column(length: 255, nullable: true)]
|
||||
private ?string $origin = null;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getFid(): ?int
|
||||
{
|
||||
return $this->fid;
|
||||
}
|
||||
|
||||
public function setFid(int $fid): self
|
||||
{
|
||||
$this->fid = $fid;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getSiteId(): ?int
|
||||
{
|
||||
return $this->siteId;
|
||||
}
|
||||
|
||||
public function setSiteId(?int $siteId): self
|
||||
{
|
||||
$this->siteId = $siteId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function setName(string $name): self
|
||||
{
|
||||
$this->name = $name;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAddress(): ?string
|
||||
{
|
||||
return $this->address;
|
||||
}
|
||||
|
||||
public function setAddress(?string $address): self
|
||||
{
|
||||
$this->address = $address;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getRegionId(): ?int
|
||||
{
|
||||
return $this->regionId;
|
||||
}
|
||||
|
||||
public function setRegionId(?int $regionId): self
|
||||
{
|
||||
$this->regionId = $regionId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getActive(): ?bool
|
||||
{
|
||||
return $this->active;
|
||||
}
|
||||
|
||||
public function setActive(?bool $active): self
|
||||
{
|
||||
$this->active = $active;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCompany(): ?string
|
||||
{
|
||||
return $this->company;
|
||||
}
|
||||
|
||||
public function setCompany(?string $company): self
|
||||
{
|
||||
$this->company = $company;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getShortName(): ?string
|
||||
{
|
||||
return $this->shortName;
|
||||
}
|
||||
|
||||
public function setShortName(?string $shortName): static
|
||||
{
|
||||
$this->shortName = $shortName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPhone(): ?string
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
public function setPhone(?string $phone): static
|
||||
{
|
||||
$this->phone = $phone;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPolicy(): ?string
|
||||
{
|
||||
return $this->policy;
|
||||
}
|
||||
|
||||
public function setPolicy(?string $policy): static
|
||||
{
|
||||
$this->policy = $policy;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPicture(): ?string
|
||||
{
|
||||
return $this->picture;
|
||||
}
|
||||
|
||||
public function setPicture(?string $picture): static
|
||||
{
|
||||
$this->picture = $picture;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getEmail(): ?string
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
public function setEmail(?string $email): static
|
||||
{
|
||||
$this->email = $email;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getOrigin(): ?string
|
||||
{
|
||||
return $this->origin;
|
||||
}
|
||||
|
||||
public function setOrigin(?string $origin): static
|
||||
{
|
||||
$this->origin = $origin;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user