src/Entity/Agent.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AgentRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClass: AgentRepository::class)]
  7. class Agent
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column()]
  12.     private ?int $id = null;
  13.     #[ORM\ManyToOne(inversedBy: 'agents')]
  14.     private ?User $user = null;
  15.     #[ORM\ManyToOne(inversedBy: 'agents')]
  16.     private ?DicImada $imada = null;
  17.     #[ORM\Column(length: 255, nullable: true)]
  18.     private ?string $nprAgentFr = null;
  19.     #[ORM\Column(length: 255, nullable: true)]
  20.     private ?string $nprAgentAr = null;
  21.     #[ORM\Column(length: 1, nullable: true)]
  22.     private ?string $typeAgent = null;
  23.     #[ORM\Column(length: 50, nullable: true)]
  24.     private ?string $identAgent = null;
  25.     #[ORM\Column(length: 255, nullable: true)]
  26.     private ?string $adresse = null;
  27.     #[ORM\Column(length: 30, nullable: true)]
  28.     private ?string $numTel = null;
  29.     #[ORM\Column(nullable: true)]
  30.     private ?int $numFax = null;
  31.     #[ORM\Column(type: Types::DATETIME_MUTABLE)]
  32.     private ?\DateTimeInterface $createdAt = null;
  33.     #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
  34.     private ?\DateTimeInterface $updatedAt = null;
  35.     #[ORM\ManyToOne(inversedBy: 'agents')]
  36.     private ?DicGouvernorat $gouvernorat = null;
  37.     #[ORM\ManyToOne(inversedBy: 'agents')]
  38.     private ?DicDelegation $delegation = null;
  39.     #[ORM\Column(length: 100, nullable: true)]
  40.     private ?string $codAgent = null;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getUser(): ?User
  46.     {
  47.         return $this->user;
  48.     }
  49.     public function setUser(?User $user): self
  50.     {
  51.         $this->user = $user;
  52.         return $this;
  53.     }
  54.     public function getImada(): ?DicImada
  55.     {
  56.         return $this->imada;
  57.     }
  58.     public function setImada(?DicImada $imada): self
  59.     {
  60.         $this->imada = $imada;
  61.         return $this;
  62.     }
  63.     public function getNprAgentFr(): ?string
  64.     {
  65.         return $this->nprAgentFr;
  66.     }
  67.     public function setNprAgentFr(?string $nprAgentFr): self
  68.     {
  69.         $this->nprAgentFr = $nprAgentFr;
  70.         return $this;
  71.     }
  72.     public function getNprAgentAr(): ?string
  73.     {
  74.         return $this->nprAgentAr;
  75.     }
  76.     public function setNprAgentAr(?string $nprAgentAr): self
  77.     {
  78.         $this->nprAgentAr = $nprAgentAr;
  79.         return $this;
  80.     }
  81.     public function getTypeAgent(): ?string
  82.     {
  83.         return $this->typeAgent;
  84.     }
  85.     public function setTypeAgent(?string $typeAgent): self
  86.     {
  87.         $this->typeAgent = $typeAgent;
  88.         return $this;
  89.     }
  90.     public function getIdentAgent(): ?string
  91.     {
  92.         return $this->identAgent;
  93.     }
  94.     public function setIdentAgent(?string $identAgent): self
  95.     {
  96.         $this->identAgent = $identAgent;
  97.         return $this;
  98.     }
  99.     public function getAdresse(): ?string
  100.     {
  101.         return $this->adresse;
  102.     }
  103.     public function setAdresse(?string $adresse): self
  104.     {
  105.         $this->adresse = $adresse;
  106.         return $this;
  107.     }
  108.     public function getNumTel(): ?string
  109.     {
  110.         return $this->numTel;
  111.     }
  112.     public function setNumTel(?string $numTel): self
  113.     {
  114.         $this->numTel = $numTel;
  115.         return $this;
  116.     }
  117.     public function getNumFax(): ?int
  118.     {
  119.         return $this->numFax;
  120.     }
  121.     public function setNumFax(?int $numFax): self
  122.     {
  123.         $this->numFax = $numFax;
  124.         return $this;
  125.     }
  126.     public function getCreatedAt(): ?\DateTimeInterface
  127.     {
  128.         return $this->createdAt;
  129.     }
  130.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  131.     {
  132.         $this->createdAt = $createdAt;
  133.         return $this;
  134.     }
  135.     public function getUpdatedAt(): ?\DateTimeInterface
  136.     {
  137.         return $this->updatedAt;
  138.     }
  139.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): self
  140.     {
  141.         $this->updatedAt = $updatedAt;
  142.         return $this;
  143.     }
  144.     public function getGouvernorat(): ?DicGouvernorat
  145.     {
  146.         return $this->gouvernorat;
  147.     }
  148.     public function setGouvernorat(?DicGouvernorat $gouvernorat): self
  149.     {
  150.         $this->gouvernorat = $gouvernorat;
  151.         return $this;
  152.     }
  153.     public function getDelegation(): ?DicDelegation
  154.     {
  155.         return $this->delegation;
  156.     }
  157.     public function setDelegation(?DicDelegation $delegation): self
  158.     {
  159.         $this->delegation = $delegation;
  160.         return $this;
  161.     }
  162.     public function getCodAgent(): ?string
  163.     {
  164.         return $this->codAgent;
  165.     }
  166.     public function setCodAgent(?string $codAgent): self
  167.     {
  168.         $this->codAgent = $codAgent;
  169.         return $this;
  170.     }
  171. }