src/Entity/Partenaire.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\User;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use App\Repository\PartenaireRepository;
  8. #[ORM\Entity(repositoryClassPartenaireRepository::class)]
  9. class Partenaire extends User
  10. {
  11.     public const PARTENAIRE_REGIONAL 'Partenaire_regional';
  12.     public const PARTENAIRE_NATIONAL 'Partenaire_national';
  13.     #[ORM\Column(type'string'length255)]
  14.     private $type_partenaire;
  15.     #[ORM\Column(nullabletrue)]
  16.     private ?int $nombre_entreprise null;
  17.     #[ORM\Column(type'string'length255nullable:true)]
  18.     private $cnsscnrps ;
  19.     #[ORM\Column(type'string'length255)]
  20.     private $code_cnss;
  21.     #[ORM\Column(type'string'length255)]
  22.     private $secteur;
  23.     #[ORM\Column(type'string'length255)]
  24.     private $branche;
  25.     #[ORM\Column(type'string'length255)]
  26.     private $fax;
  27.     #[ORM\Column(type'string'length255)]
  28.     private $tel;
  29.     #[ORM\Column(type'string'length255)]
  30.     private $nom_prenom_president;
  31.     #[ORM\Column(type'string'length255)]
  32.     private $nom_prenom_secretaire_general;
  33.     #[ORM\Column(type'string'length255)]
  34.     private $nom_prenom_responsable_UAF;
  35.     #[ORM\Column(type'string'length255)]
  36.     private $nom;
  37.     #[ORM\Column(type'string'length255nullabletrue)]
  38.     private $fileName null ;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $originalFileName null;
  41.   
  42.     #[ORM\OneToMany(mappedBy'entreprisePartenaire'targetEntityEnterprisePartenaire::class, cascade: ['persist''remove'])]
  43.     private Collection $enterprisePartenaires;
  44.     #[ORM\ManyToOne()]
  45.     private ?Gouvernorat $gouvernorat null;
  46.     #[ORM\ManyToOne()]
  47.     private ?Delegation $delegation null;
  48.     public function __construct()
  49.     {
  50.         parent::__construct();
  51.         $this->enterprisePartenaires = new ArrayCollection();
  52.     }
  53.     /**
  54.      * @return Gouvernorat|null
  55.      */
  56.     public function getGouvernorat(): ?Gouvernorat
  57.     {
  58.         return $this->gouvernorat;
  59.     }
  60.     /**
  61.      * @param Gouvernorat|null $gouvernorat
  62.      */
  63.     public function setGouvernorat(?Gouvernorat $gouvernorat): void
  64.     {
  65.         $this->gouvernorat $gouvernorat;
  66.     }
  67.     /**
  68.      * @return Delegation|null
  69.      */
  70.     public function getDelegation(): ?Delegation
  71.     {
  72.         return $this->delegation;
  73.     }
  74.     /**
  75.      * @param Delegation|null $delegation
  76.      */
  77.     public function setDelegation(?Delegation $delegation): void
  78.     {
  79.         $this->delegation $delegation;
  80.     }
  81.     public function getTypePartenaire(): ?string
  82.     {
  83.         return $this->type_partenaire;
  84.     }
  85.     public function setTypePartenaire(string $type): self
  86.     {
  87.         $this->type_partenaire $type;
  88.         return $this;
  89.     }
  90.     public function getNombreEntreprise(): ?int
  91.     {
  92.         return $this->nombre_entreprise;
  93.     }
  94.     public function setNombreEntreprise(int $nombre_entreprise): self
  95.     {
  96.         $this->nombre_entreprise $nombre_entreprise;
  97.         return $this;
  98.     }
  99.     public function getCodeCnss(): ?string
  100.     {
  101.         return $this->code_cnss;
  102.     }
  103.     public function setCodeCnss(string $code_cnss): self
  104.     {
  105.         $this->code_cnss $code_cnss;
  106.         return $this;
  107.     }
  108.     public function getSecteur(): ?string
  109.     {
  110.         return $this->secteur;
  111.     }
  112.     public function setSecteur(string $secteur): self
  113.     {
  114.         $this->secteur $secteur;
  115.         return $this;
  116.     }
  117.     public function getBranche(): ?string
  118.     {
  119.         return $this->branche;
  120.     }
  121.     public function setBranche(string $branche): self
  122.     {
  123.         $this->branche $branche;
  124.         return $this;
  125.     }
  126.     public function getFax(): ?string
  127.     {
  128.         return $this->fax;
  129.     }
  130.     public function setFax(string $fax): self
  131.     {
  132.         $this->fax $fax;
  133.         return $this;
  134.     }
  135.     public function getTel(): ?string
  136.     {
  137.         return $this->tel;
  138.     }
  139.     public function setTel(string $tel): self
  140.     {
  141.         $this->tel $tel;
  142.         return $this;
  143.     }
  144.     public function getNomPrenomPresident(): ?string
  145.     {
  146.         return $this->nom_prenom_president;
  147.     }
  148.     public function setNomPrenomPresident(string $nom_prenom_president): self
  149.     {
  150.         $this->nom_prenom_president $nom_prenom_president;
  151.         return $this;
  152.     }
  153.     public function getNomPrenomSecretaireGeneral(): ?string
  154.     {
  155.         return $this->nom_prenom_secretaire_general;
  156.     }
  157.     public function setNomPrenomSecretaireGeneral(string $nom_prenom_secretaire_general): self
  158.     {
  159.         $this->nom_prenom_secretaire_general $nom_prenom_secretaire_general;
  160.         return $this;
  161.     }
  162.     public function getNomPrenomResponsableUAF(): ?string
  163.     {
  164.         return $this->nom_prenom_responsable_UAF;
  165.     }
  166.     public function setNomPrenomResponsableUAF(string $nom_prenom_responsable_UAF): self
  167.     {
  168.         $this->nom_prenom_responsable_UAF $nom_prenom_responsable_UAF;
  169.         return $this;
  170.     }
  171.     public function getNom(): ?string
  172.     {
  173.         return $this->nom;
  174.     }
  175.     public function setNom(string $nom): self
  176.     {
  177.         $this->nom $nom;
  178.         return $this;
  179.     }
  180.     /**
  181.      * @return Collection<int, EnterprisePartenaire>
  182.      */
  183.     public function getEnterprisePartenaires(): Collection
  184.     {
  185.         return $this->enterprisePartenaires;
  186.     }
  187.     public function addEnterprisePartenaire(EnterprisePartenaire $enterprisePartenaire): self
  188.     {
  189.         if (!$this->enterprisePartenaires->contains($enterprisePartenaire)) {
  190.             $this->enterprisePartenaires->add($enterprisePartenaire);
  191.             $enterprisePartenaire->setEntreprisePartenaire($this);
  192.         }
  193.         return $this;
  194.     }
  195.     public function removeEnterprisePartenaire(EnterprisePartenaire $enterprisePartenaire): self
  196.     {
  197.         if ($this->enterprisePartenaires->removeElement($enterprisePartenaire)) {
  198.             // set the owning side to null (unless already changed)
  199.             if ($enterprisePartenaire->getEntreprisePartenaire() === $this) {
  200.                 $enterprisePartenaire->setEntreprisePartenaire(null);
  201.             }
  202.         }
  203.         return $this;
  204.     }
  205.     public function __toString()
  206.     {
  207.         return (string)$this->nom;
  208.     }
  209.     /**
  210.      * Get the value of fileName
  211.      */ 
  212.     public function getFileName()
  213.     {
  214.         return $this->fileName;
  215.     }
  216.     /**
  217.      * Set the value of fileName
  218.      *
  219.      * @return  self
  220.      */ 
  221.     public function setFileName($fileName)
  222.     {
  223.         $this->fileName $fileName;
  224.         return $this;
  225.     }
  226.     /**
  227.      * Get the value of originalFileName
  228.      */ 
  229.     public function getOriginalFileName()
  230.     {
  231.         return $this->originalFileName;
  232.     }
  233.     /**
  234.      * Set the value of originalFileName
  235.      *
  236.      * @return  self
  237.      */ 
  238.     public function setOriginalFileName($originalFileName)
  239.     {
  240.         $this->originalFileName $originalFileName;
  241.         return $this;
  242.     }
  243.    
  244.     /**
  245.      * Get the value of cnsscnrps
  246.      */ 
  247.     public function getCnsscnrps()
  248.     {
  249.         return $this->cnsscnrps;
  250.     }
  251.     /**
  252.      * Set the value of cnsscnrps
  253.      *
  254.      * @return  self
  255.      */ 
  256.     public function setCnsscnrps($cnsscnrps)
  257.     {
  258.         $this->cnsscnrps $cnsscnrps;
  259.         return $this;
  260.     }
  261. }