<?php
namespace App\Entity;
use App\Entity\User;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use App\Repository\PartenaireRepository;
#[ORM\Entity(repositoryClass: PartenaireRepository::class)]
class Partenaire extends User
{
public const PARTENAIRE_REGIONAL = 'Partenaire_regional';
public const PARTENAIRE_NATIONAL = 'Partenaire_national';
#[ORM\Column(type: 'string', length: 255)]
private $type_partenaire;
#[ORM\Column(nullable: true)]
private ?int $nombre_entreprise = null;
#[ORM\Column(type: 'string', length: 255, nullable:true)]
private $cnsscnrps ;
#[ORM\Column(type: 'string', length: 255)]
private $code_cnss;
#[ORM\Column(type: 'string', length: 255)]
private $secteur;
#[ORM\Column(type: 'string', length: 255)]
private $branche;
#[ORM\Column(type: 'string', length: 255)]
private $fax;
#[ORM\Column(type: 'string', length: 255)]
private $tel;
#[ORM\Column(type: 'string', length: 255)]
private $nom_prenom_president;
#[ORM\Column(type: 'string', length: 255)]
private $nom_prenom_secretaire_general;
#[ORM\Column(type: 'string', length: 255)]
private $nom_prenom_responsable_UAF;
#[ORM\Column(type: 'string', length: 255)]
private $nom;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $fileName = null ;
#[ORM\Column(length: 255, nullable: true)]
private ?string $originalFileName = null;
#[ORM\OneToMany(mappedBy: 'entreprisePartenaire', targetEntity: EnterprisePartenaire::class, cascade: ['persist', 'remove'])]
private Collection $enterprisePartenaires;
#[ORM\ManyToOne()]
private ?Gouvernorat $gouvernorat = null;
#[ORM\ManyToOne()]
private ?Delegation $delegation = null;
public function __construct()
{
parent::__construct();
$this->enterprisePartenaires = new ArrayCollection();
}
/**
* @return Gouvernorat|null
*/
public function getGouvernorat(): ?Gouvernorat
{
return $this->gouvernorat;
}
/**
* @param Gouvernorat|null $gouvernorat
*/
public function setGouvernorat(?Gouvernorat $gouvernorat): void
{
$this->gouvernorat = $gouvernorat;
}
/**
* @return Delegation|null
*/
public function getDelegation(): ?Delegation
{
return $this->delegation;
}
/**
* @param Delegation|null $delegation
*/
public function setDelegation(?Delegation $delegation): void
{
$this->delegation = $delegation;
}
public function getTypePartenaire(): ?string
{
return $this->type_partenaire;
}
public function setTypePartenaire(string $type): self
{
$this->type_partenaire = $type;
return $this;
}
public function getNombreEntreprise(): ?int
{
return $this->nombre_entreprise;
}
public function setNombreEntreprise(int $nombre_entreprise): self
{
$this->nombre_entreprise = $nombre_entreprise;
return $this;
}
public function getCodeCnss(): ?string
{
return $this->code_cnss;
}
public function setCodeCnss(string $code_cnss): self
{
$this->code_cnss = $code_cnss;
return $this;
}
public function getSecteur(): ?string
{
return $this->secteur;
}
public function setSecteur(string $secteur): self
{
$this->secteur = $secteur;
return $this;
}
public function getBranche(): ?string
{
return $this->branche;
}
public function setBranche(string $branche): self
{
$this->branche = $branche;
return $this;
}
public function getFax(): ?string
{
return $this->fax;
}
public function setFax(string $fax): self
{
$this->fax = $fax;
return $this;
}
public function getTel(): ?string
{
return $this->tel;
}
public function setTel(string $tel): self
{
$this->tel = $tel;
return $this;
}
public function getNomPrenomPresident(): ?string
{
return $this->nom_prenom_president;
}
public function setNomPrenomPresident(string $nom_prenom_president): self
{
$this->nom_prenom_president = $nom_prenom_president;
return $this;
}
public function getNomPrenomSecretaireGeneral(): ?string
{
return $this->nom_prenom_secretaire_general;
}
public function setNomPrenomSecretaireGeneral(string $nom_prenom_secretaire_general): self
{
$this->nom_prenom_secretaire_general = $nom_prenom_secretaire_general;
return $this;
}
public function getNomPrenomResponsableUAF(): ?string
{
return $this->nom_prenom_responsable_UAF;
}
public function setNomPrenomResponsableUAF(string $nom_prenom_responsable_UAF): self
{
$this->nom_prenom_responsable_UAF = $nom_prenom_responsable_UAF;
return $this;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(string $nom): self
{
$this->nom = $nom;
return $this;
}
/**
* @return Collection<int, EnterprisePartenaire>
*/
public function getEnterprisePartenaires(): Collection
{
return $this->enterprisePartenaires;
}
public function addEnterprisePartenaire(EnterprisePartenaire $enterprisePartenaire): self
{
if (!$this->enterprisePartenaires->contains($enterprisePartenaire)) {
$this->enterprisePartenaires->add($enterprisePartenaire);
$enterprisePartenaire->setEntreprisePartenaire($this);
}
return $this;
}
public function removeEnterprisePartenaire(EnterprisePartenaire $enterprisePartenaire): self
{
if ($this->enterprisePartenaires->removeElement($enterprisePartenaire)) {
// set the owning side to null (unless already changed)
if ($enterprisePartenaire->getEntreprisePartenaire() === $this) {
$enterprisePartenaire->setEntreprisePartenaire(null);
}
}
return $this;
}
public function __toString()
{
return (string)$this->nom;
}
/**
* Get the value of fileName
*/
public function getFileName()
{
return $this->fileName;
}
/**
* Set the value of fileName
*
* @return self
*/
public function setFileName($fileName)
{
$this->fileName = $fileName;
return $this;
}
/**
* Get the value of originalFileName
*/
public function getOriginalFileName()
{
return $this->originalFileName;
}
/**
* Set the value of originalFileName
*
* @return self
*/
public function setOriginalFileName($originalFileName)
{
$this->originalFileName = $originalFileName;
return $this;
}
/**
* Get the value of cnsscnrps
*/
public function getCnsscnrps()
{
return $this->cnsscnrps;
}
/**
* Set the value of cnsscnrps
*
* @return self
*/
public function setCnsscnrps($cnsscnrps)
{
$this->cnsscnrps = $cnsscnrps;
return $this;
}
}