<?php
namespace App\Entity;
use App\Repository\AgentRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: AgentRepository::class)]
class Agent
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column()]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'agents')]
private ?User $user = null;
#[ORM\ManyToOne(inversedBy: 'agents')]
private ?DicImada $imada = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nprAgentFr = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $nprAgentAr = null;
#[ORM\Column(length: 1, nullable: true)]
private ?string $typeAgent = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $identAgent = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $adresse = null;
#[ORM\Column(length: 30, nullable: true)]
private ?string $numTel = null;
#[ORM\Column(nullable: true)]
private ?int $numFax = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $createdAt = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $updatedAt = null;
#[ORM\ManyToOne(inversedBy: 'agents')]
private ?DicGouvernorat $gouvernorat = null;
#[ORM\ManyToOne(inversedBy: 'agents')]
private ?DicDelegation $delegation = null;
#[ORM\Column(length: 100, nullable: true)]
private ?string $codAgent = null;
public function getId(): ?int
{
return $this->id;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
public function getImada(): ?DicImada
{
return $this->imada;
}
public function setImada(?DicImada $imada): self
{
$this->imada = $imada;
return $this;
}
public function getNprAgentFr(): ?string
{
return $this->nprAgentFr;
}
public function setNprAgentFr(?string $nprAgentFr): self
{
$this->nprAgentFr = $nprAgentFr;
return $this;
}
public function getNprAgentAr(): ?string
{
return $this->nprAgentAr;
}
public function setNprAgentAr(?string $nprAgentAr): self
{
$this->nprAgentAr = $nprAgentAr;
return $this;
}
public function getTypeAgent(): ?string
{
return $this->typeAgent;
}
public function setTypeAgent(?string $typeAgent): self
{
$this->typeAgent = $typeAgent;
return $this;
}
public function getIdentAgent(): ?string
{
return $this->identAgent;
}
public function setIdentAgent(?string $identAgent): self
{
$this->identAgent = $identAgent;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): self
{
$this->adresse = $adresse;
return $this;
}
public function getNumTel(): ?string
{
return $this->numTel;
}
public function setNumTel(?string $numTel): self
{
$this->numTel = $numTel;
return $this;
}
public function getNumFax(): ?int
{
return $this->numFax;
}
public function setNumFax(?int $numFax): self
{
$this->numFax = $numFax;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getUpdatedAt(): ?\DateTimeInterface
{
return $this->updatedAt;
}
public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
{
$this->updatedAt = $updatedAt;
return $this;
}
public function getGouvernorat(): ?DicGouvernorat
{
return $this->gouvernorat;
}
public function setGouvernorat(?DicGouvernorat $gouvernorat): self
{
$this->gouvernorat = $gouvernorat;
return $this;
}
public function getDelegation(): ?DicDelegation
{
return $this->delegation;
}
public function setDelegation(?DicDelegation $delegation): self
{
$this->delegation = $delegation;
return $this;
}
public function getCodAgent(): ?string
{
return $this->codAgent;
}
public function setCodAgent(?string $codAgent): self
{
$this->codAgent = $codAgent;
return $this;
}
}