Deprecated: Constant E_STRICT is deprecated in /home/normanv/www/annuairepro/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /home/normanv/www/annuairepro/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

src/Entity/Structure.php line 873

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StructureRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\HttpFoundation\File\File;
  8. use Symfony\Component\HttpFoundation\File\UploadedFile;
  9. use Symfony\Component\Validator\Constraints as Assert;
  10. use Vich\UploaderBundle\Entity\File as EmbeddedFile;
  11. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  12. /**
  13.  * @ORM\Entity(repositoryClass=StructureRepository::class)
  14.  * @Vich\Uploadable
  15.  */
  16. class Structure
  17. {
  18.     /**
  19.      * @ORM\Id()
  20.      * @ORM\GeneratedValue()
  21.      * @ORM\Column(type="integer")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      * @Assert\Length(
  27.      *      max = 255,
  28.      *      maxMessage = "{{ limit }} caractères maximum"
  29.      * )
  30.      */
  31.     private $nom;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      * @Assert\Length(
  35.      *      max = 255,
  36.      *      maxMessage = "Le nom de la structure ne doit pas comporter plus de {{ limit }} caractères"
  37.      * )
  38.      */
  39.     private $adresse;
  40.     /**
  41.      * @ORM\Column(type="string", length=25, nullable=true)
  42.      */
  43.     private $adresseType;
  44.     /**
  45.      * @ORM\Column(type="string", length=10, nullable=true)
  46.      * @Assert\Length(
  47.      *      min = 5,
  48.      *      max = 5,
  49.      *      minMessage = "Le code postal doit comporter au moins {{ limit }} caractères",
  50.      *      maxMessage = "Le code postal ne doit pas comporter plus de {{ limit }} caractères",
  51.      *      exactMessage = "Le code postal doit comporter {{ limit }} caractères"
  52.      * )
  53.      * @Assert\Regex(
  54.      *     pattern     = "/^14|^27|^50|^61|^76/",
  55.      *     message="Seules les adresses en Normandie sont acceptées !"
  56.      * )
  57.      */
  58.     private $codePostal;
  59.     /**
  60.      * @ORM\Column(type="string", length=255, nullable=true)
  61.      * @Assert\Length(
  62.      *      max = 255,
  63.      *      maxMessage = "{{ limit }} caractères maximum"
  64.      * )
  65.      */
  66.     private $ville;
  67.     /**
  68.      * @ORM\Column(type="string", length=25, nullable=true)
  69.      * @Assert\Length(
  70.      *      min = 10,
  71.      *      max = 20,
  72.      *      minMessage = "Le téléphone doit comporter au moins {{ limit }} caractères",
  73.      *      maxMessage = "Le téléphone ne doit pas comporter plus de {{ limit }} caractères"
  74.      * )
  75.      */
  76.     private $telephoneStandard;
  77.     /**
  78.      * @ORM\Column(type="string", length=255, nullable=true)
  79.      * @Assert\Email(
  80.      *     message = "L'email '{{ value }}' n'est pas un email valide"
  81.      * )
  82.      */
  83.     private $mailStructure;
  84.     /**
  85.      * @ORM\Column(type="string", length=255, nullable=true)
  86.      * @Assert\Length(
  87.      *      max = 255,
  88.      *      maxMessage = "{{ limit }} caractères maximum"
  89.      * )
  90.      */
  91.     private $site;
  92.     /**
  93.      * @ORM\Column(type="string", length=255, nullable=true)
  94.      * @Assert\Length(
  95.      *      max = 255,
  96.      *      maxMessage = "{{ limit }} caractères maximum"
  97.      * )
  98.      */
  99.     private $reseauSocial;
  100.     /**
  101.      * @ORM\Column(type="string", length=255, nullable=true)
  102.      * @Assert\Length(
  103.      *      max = 255,
  104.      *      maxMessage = "{{ limit }} caractères maximum"
  105.      * )
  106.      */
  107.     private $dirigeantStatut;
  108.     /**
  109.      * @ORM\Column(type="string", length=255, nullable=true)
  110.      * @Assert\Length(
  111.      *      max = 255,
  112.      *      maxMessage = "{{ limit }} caractères maximum"
  113.      * )
  114.      */
  115.     private $dirigeantFonction;
  116.     /**
  117.      * @ORM\Column(type="string", length=255, nullable=true)
  118.      * @Assert\Length(
  119.      *      max = 255,
  120.      *      maxMessage = "{{ limit }} caractères maximum"
  121.      * )
  122.      */
  123.     private $dirigeantService;
  124.     /**
  125.      * @ORM\Column(type="string", length=25, nullable=true)
  126.      */
  127.     private $dirigeantCivilite;
  128.     /**
  129.      * @ORM\Column(type="string", length=255, nullable=true)
  130.      * @Assert\Length(
  131.      *      max = 255,
  132.      *      maxMessage = "{{ limit }} caractères maximum"
  133.      * )
  134.      */
  135.     private $dirigeantNom;
  136.     /**
  137.      * @ORM\Column(type="string", length=255, nullable=true)
  138.      * @Assert\Length(
  139.      *      max = 255,
  140.      *      maxMessage = "{{ limit }} caractères maximum"
  141.      * )
  142.      */
  143.     private $dirigeantPrenom;
  144.     /**
  145.      * @ORM\Column(type="string", length=25, nullable=true)
  146.      * @Assert\Length(
  147.      *      min = 10,
  148.      *      max = 20,
  149.      *      minMessage = "Le téléphone doit comporter au moins {{ limit }} caractères",
  150.      *      maxMessage = "Le téléphone ne doit pas comporter plus de {{ limit }} caractères"
  151.      * )
  152.      */
  153.     private $dirigeantTelephoneFixe;
  154.     /**
  155.      * @ORM\Column(type="string", length=25, nullable=true)
  156.      * @Assert\Length(
  157.      *      min = 10,
  158.      *      max = 20,
  159.      *      minMessage = "Le téléphone doit comporter au moins {{ limit }} caractères",
  160.      *      maxMessage = "Le téléphone ne doit pas comporter plus de {{ limit }} caractères"
  161.      * )
  162.      */
  163.     private $dirigeantTelephoneMobile;
  164.     /**
  165.      * @ORM\Column(type="string", length=255, nullable=true)
  166.      */
  167.     private $dirigeantMail;
  168.     /**
  169.      * @ORM\Column(type="string", length=255, nullable=true)
  170.      * @Assert\Length(
  171.      *      max = 255,
  172.      *      maxMessage = "{{ limit }} caractères maximum"
  173.      * )
  174.      */
  175.     private $dirigeantAdresse;
  176.     /**
  177.      * @ORM\Column(type="string", length=10, nullable=true)
  178.      * @Assert\Length(
  179.      *      min = 5,
  180.      *      max = 5,
  181.      *      minMessage = "Le code postal doit comporter au moins {{ limit }} caractères",
  182.      *      maxMessage = "Le code postal ne doit pas comporter plus de {{ limit }} caractères",
  183.      *      exactMessage = "Le code postal doit comporter {{ limit }} caractères"
  184.      * )
  185.      */
  186.     private $dirigeantCodePostal;
  187.     /**
  188.      * @ORM\Column(type="string", length=255, nullable=true)
  189.      * @Assert\Length(
  190.      *      max = 255,
  191.      *      maxMessage = "{{ limit }} caractères maximum"
  192.      * )
  193.      */
  194.     private $dirigeantVille;
  195.     /**
  196.      * @ORM\Column(type="string", length=255, nullable=true)
  197.      * @Assert\Length(
  198.      *      max = 255,
  199.      *      maxMessage = "{{ limit }} caractères maximum"
  200.      * )
  201.      */
  202.     private $formeJuridique;
  203.     /**
  204.      * @ORM\Column(type="datetime", nullable=true)
  205.      */
  206.     private $dateCreation;
  207.     /**
  208.      * @ORM\Column(type="string", length=20, nullable=true)
  209.      * @Assert\Length(
  210.      *      max = 20,
  211.      *      maxMessage = "{{ limit }} caractères maximum"
  212.      * )
  213.      */
  214.     private $siret;
  215.     /**
  216.      * @ORM\Column(type="string", length=255, nullable=true)
  217.      * @Assert\Length(
  218.      *      max = 255,
  219.      *      maxMessage = "{{ limit }} caractères maximum"
  220.      * )
  221.      */
  222.     private $codeNaf;
  223.     /**
  224.      * @ORM\Column(type="integer", nullable=true)
  225.      *
  226.      * @Assert\Regex(
  227.      *     pattern="/^[\d]*$/",
  228.      *     message="Seule une valeur positive est autorisée !"
  229.      * )
  230.      */
  231.     private $nbSalarie;
  232.     /**
  233.      * @ORM\Column(type="integer", nullable=true)
  234.      *
  235.      * @Assert\Regex(
  236.      *     pattern="/^[\d]*$/",
  237.      *     message="Seule une valeur positive est autorisée !"
  238.      * )
  239.      */
  240.     private $nbCdd;
  241.     /**
  242.      * @ORM\Column(type="integer", nullable=true)
  243.      *
  244.      * @Assert\Regex(
  245.      *     pattern="/^[\d]*$/",
  246.      *     message="Seule une valeur positive est autorisée !"
  247.      * )
  248.      */
  249.     private $nbJrsIntermittent;
  250.     /**
  251.      * @ORM\Column(type="string", length=5, nullable=true)
  252.      */
  253.     private $bureauNormandie;
  254.     /**
  255.      * @ORM\Column(type="boolean", nullable=true)
  256.      */
  257.     private $productionCineAudioCheck;
  258.     /**
  259.      * @ORM\Column(type="boolean", nullable=true)
  260.      */
  261.     private $productionComCheck;
  262.     /**
  263.      * @ORM\Column(type="boolean", nullable=true)
  264.      */
  265.     private $prestataireTechniqueCheck;
  266.     /**
  267.      * @ORM\Column(type="boolean", nullable=true)
  268.      */
  269.     private $prestataireLogistiqueCheck;
  270.     /**
  271.      * @ORM\Column(type="datetime")
  272.      */
  273.     private $createdAt;
  274.     /**
  275.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="structures")
  276.      * @ORM\JoinColumn(nullable=false)
  277.      */
  278.     private $user;
  279.     /**
  280.      * @ORM\OneToMany(targetEntity="App\Entity\Contact", mappedBy="structure", cascade={"persist"}, orphanRemoval=true)
  281.      */
  282.     private $contacts;
  283.     /**
  284.      * @ORM\Column(type="string", length=255, nullable=true)
  285.      * @Assert\Length(
  286.      *      max = 255,
  287.      *      maxMessage = "{{ limit }} caractères maximum"
  288.      * )
  289.      */
  290.     private $referent;
  291.     /**
  292.      * @ORM\Column(type="datetime", nullable=true)
  293.      */
  294.     private $modifiedAt;
  295.     /**
  296.      * @ORM\Column(type="string", length=25)
  297.      * @Assert\Length(
  298.      *      max = 25,
  299.      *      maxMessage = "{{ limit }} caractères maximum"
  300.      * )
  301.      */
  302.     private $statut;
  303.     /**
  304.      * @ORM\Column(type="datetime")
  305.      */
  306.     private $statutDate;
  307.     /**
  308.      * @ORM\Column(type="string", length=50, nullable=true)
  309.      */
  310.     private $situationPro;
  311.     /**
  312.      * @ORM\OneToMany(targetEntity="App\Entity\ReseauSocial", mappedBy="structure", cascade={"persist"}, orphanRemoval=true)
  313.      */
  314.     private $reseauxSociaux;
  315.     /**
  316.      * @ORM\Column(type="boolean", nullable=true)
  317.      */
  318.     private $strSelected;
  319.     /**
  320.      * NOTE: This is not a mapped field of entity metadata, just a simple property.
  321.      *
  322.      * @Vich\UploadableField(mapping="kbis", fileNameProperty="kbis.name", size="kbis.size", mimeType="kbis.mimeType", originalName="kbis.originalName", dimensions="kbis.dimensions")
  323.      *
  324.      * @var File
  325.      */
  326.     private $kbisFile;
  327.     /**
  328.      * @ORM\Embedded(class="Vich\UploaderBundle\Entity\File")
  329.      *
  330.      * @var EmbeddedFile
  331.      */
  332.     private $kbis;
  333.     /**
  334.      * @ORM\Column(type="datetime", nullable=true)
  335.      *
  336.      * @var \DateTime
  337.      */
  338.     private $kbisUpdatedAt;
  339.     public function __construct()
  340.     {
  341.         $this->contacts = new ArrayCollection();
  342.         $this->reseauxSociaux = new ArrayCollection();
  343.         $this->kbis = new EmbeddedFile();
  344.         $this->statut  'nouveau';
  345.         $this->statutDate = new \DateTime();
  346.     }
  347.     public function getId(): ?int
  348.     {
  349.         return $this->id;
  350.     }
  351.     public function getNom(): ?string
  352.     {
  353.         return $this->nom;
  354.     }
  355.     public function setNom(?string $nom): self
  356.     {
  357.         $this->nom $nom;
  358.         return $this;
  359.     }
  360.     public function getAdresse(): ?string
  361.     {
  362.         return $this->adresse;
  363.     }
  364.     public function setAdresse(?string $adresse): self
  365.     {
  366.         $this->adresse $adresse;
  367.         return $this;
  368.     }
  369.     public function getAdresseType(): ?string
  370.     {
  371.         return $this->adresseType;
  372.     }
  373.     public function setAdresseType(?string $adresseType): self
  374.     {
  375.         $this->adresseType $adresseType;
  376.         return $this;
  377.     }
  378.     public function getCodePostal(): ?string
  379.     {
  380.         return $this->codePostal;
  381.     }
  382.     public function setCodePostal(?string $codePostal): self
  383.     {
  384.         $this->codePostal $codePostal;
  385.         return $this;
  386.     }
  387.     public function getVille(): ?string
  388.     {
  389.         return $this->ville;
  390.     }
  391.     public function setVille(?string $ville): self
  392.     {
  393.         $this->ville $ville;
  394.         return $this;
  395.     }
  396.     public function getTelephoneStandard(): ?string
  397.     {
  398.         return $this->telephoneStandard;
  399.     }
  400.     public function setTelephoneStandard(string $telephoneStandard): self
  401.     {
  402.         $this->telephoneStandard $telephoneStandard;
  403.         return $this;
  404.     }
  405.     public function getMailStructure(): ?string
  406.     {
  407.         return $this->mailStructure;
  408.     }
  409.     public function setMailStructure(string $mailStructure): self
  410.     {
  411.         $this->mailStructure $mailStructure;
  412.         return $this;
  413.     }
  414.     public function getSite(): ?string
  415.     {
  416.         return $this->site;
  417.     }
  418.     public function setSite(?string $site): self
  419.     {
  420.         $this->site $site;
  421.         return $this;
  422.     }
  423.     public function getReseauSocial(): ?string
  424.     {
  425.         return $this->reseauSocial;
  426.     }
  427.     public function setReseauSocial(?string $reseauSocial): self
  428.     {
  429.         $this->reseauSocial $reseauSocial;
  430.         return $this;
  431.     }
  432.     public function getDirigeantStatut(): ?string
  433.     {
  434.         return $this->dirigeantStatut;
  435.     }
  436.     public function setDirigeantStatut(?string $dirigeantStatut): self
  437.     {
  438.         $this->dirigeantStatut $dirigeantStatut;
  439.         return $this;
  440.     }
  441.     public function getDirigeantFonction(): ?string
  442.     {
  443.         return $this->dirigeantFonction;
  444.     }
  445.     public function setDirigeantFonction(?string $dirigeantFonction): self
  446.     {
  447.         $this->dirigeantFonction $dirigeantFonction;
  448.         return $this;
  449.     }
  450.     public function getDirigeantService(): ?string
  451.     {
  452.         return $this->dirigeantService;
  453.     }
  454.     public function setDirigeantService(?string $dirigeantService): self
  455.     {
  456.         $this->dirigeantService $dirigeantService;
  457.         return $this;
  458.     }
  459.     public function getDirigeantCivilite(): ?string
  460.     {
  461.         return $this->dirigeantCivilite;
  462.     }
  463.     public function setDirigeantCivilite(?string $dirigeantCivilite): self
  464.     {
  465.         $this->dirigeantCivilite $dirigeantCivilite;
  466.         return $this;
  467.     }
  468.     public function getDirigeantNom(): ?string
  469.     {
  470.         return $this->dirigeantNom;
  471.     }
  472.     public function setDirigeantNom(?string $dirigeantNom): self
  473.     {
  474.         $this->dirigeantNom $dirigeantNom;
  475.         return $this;
  476.     }
  477.     public function getDirigeantPrenom(): ?string
  478.     {
  479.         return $this->dirigeantPrenom;
  480.     }
  481.     public function setDirigeantPrenom(?string $dirigeantPrenom): self
  482.     {
  483.         $this->dirigeantPrenom $dirigeantPrenom;
  484.         return $this;
  485.     }
  486.     public function getDirigeantTelephoneFixe(): ?string
  487.     {
  488.         return $this->dirigeantTelephoneFixe;
  489.     }
  490.     public function setDirigeantTelephoneFixe(?string $dirigeantTelephoneFixe): self
  491.     {
  492.         $this->dirigeantTelephoneFixe $dirigeantTelephoneFixe;
  493.         return $this;
  494.     }
  495.     public function getDirigeantTelephoneMobile(): ?string
  496.     {
  497.         return $this->dirigeantTelephoneMobile;
  498.     }
  499.     public function setDirigeantTelephoneMobile(?string $dirigeantTelephoneMobile): self
  500.     {
  501.         $this->dirigeantTelephoneMobile $dirigeantTelephoneMobile;
  502.         return $this;
  503.     }
  504.     public function getDirigeantMail(): ?string
  505.     {
  506.         return $this->dirigeantMail;
  507.     }
  508.     public function setDirigeantMail(?string $dirigeantMail): self
  509.     {
  510.         $this->dirigeantMail $dirigeantMail;
  511.         return $this;
  512.     }
  513.     public function getDirigeantAdresse(): ?string
  514.     {
  515.         return $this->dirigeantAdresse;
  516.     }
  517.     public function setDirigeantAdresse(?string $dirigeantAdresse): self
  518.     {
  519.         $this->dirigeantAdresse $dirigeantAdresse;
  520.         return $this;
  521.     }
  522.     public function getDirigeantCodePostal(): ?string
  523.     {
  524.         return $this->dirigeantCodePostal;
  525.     }
  526.     public function setDirigeantCodePostal(?string $dirigeantCodePostal): self
  527.     {
  528.         $this->dirigeantCodePostal $dirigeantCodePostal;
  529.         return $this;
  530.     }
  531.     public function getDirigeantVille(): ?string
  532.     {
  533.         return $this->dirigeantVille;
  534.     }
  535.     public function setDirigeantVille(?string $dirigeantVille): self
  536.     {
  537.         $this->dirigeantVille $dirigeantVille;
  538.         return $this;
  539.     }
  540.     public function getFormeJuridique(): ?string
  541.     {
  542.         return $this->formeJuridique;
  543.     }
  544.     public function setFormeJuridique(?string $formeJuridique): self
  545.     {
  546.         $this->formeJuridique $formeJuridique;
  547.         return $this;
  548.     }
  549.     public function getDateCreation(): ?\DateTimeInterface
  550.     {
  551.         return $this->dateCreation;
  552.     }
  553.     public function setDateCreation(?\DateTimeInterface $dateCreation): self
  554.     {
  555.         $this->dateCreation $dateCreation;
  556.         return $this;
  557.     }
  558.     public function getSiret(): ?string
  559.     {
  560.         return $this->siret;
  561.     }
  562.     public function setSiret(?string $siret): self
  563.     {
  564.         $this->siret $siret;
  565.         return $this;
  566.     }
  567.     public function getCodeNaf(): ?string
  568.     {
  569.         return $this->codeNaf;
  570.     }
  571.     public function setCodeNaf(?string $codeNaf): self
  572.     {
  573.         $this->codeNaf $codeNaf;
  574.         return $this;
  575.     }
  576.     public function getNbSalarie(): ?int
  577.     {
  578.         return $this->nbSalarie;
  579.     }
  580.     public function setNbSalarie(?int $nbSalarie): self
  581.     {
  582.         $this->nbSalarie $nbSalarie;
  583.         return $this;
  584.     }
  585.     public function getNbCdd(): ?int
  586.     {
  587.         return $this->nbCdd;
  588.     }
  589.     public function setNbCdd(?int $nbCdd): self
  590.     {
  591.         $this->nbCdd $nbCdd;
  592.         return $this;
  593.     }
  594.     public function getNbJrsIntermittent(): ?int
  595.     {
  596.         return $this->nbJrsIntermittent;
  597.     }
  598.     public function setNbJrsIntermittent(?int $nbJrsIntermittent): self
  599.     {
  600.         $this->nbJrsIntermittent $nbJrsIntermittent;
  601.         return $this;
  602.     }
  603.     public function getBureauNormandie(): ?string
  604.     {
  605.         return $this->bureauNormandie;
  606.     }
  607.     public function setBureauNormandie(?string $bureauNormandie): self
  608.     {
  609.         $this->bureauNormandie $bureauNormandie;
  610.         return $this;
  611.     }
  612.     public function getProductionCineAudioCheck(): ?bool
  613.     {
  614.         return $this->productionCineAudioCheck;
  615.     }
  616.     public function setProductionCineAudioCheck(?bool $productionCineAudioCheck): self
  617.     {
  618.         $this->productionCineAudioCheck $productionCineAudioCheck;
  619.         return $this;
  620.     }
  621.     public function getProductionComCheck(): ?bool
  622.     {
  623.         return $this->productionComCheck;
  624.     }
  625.     public function setProductionComCheck(?bool $productionComCheck): self
  626.     {
  627.         $this->productionComCheck $productionComCheck;
  628.         return $this;
  629.     }
  630.     public function getPrestataireTechniqueCheck(): ?bool
  631.     {
  632.         return $this->prestataireTechniqueCheck;
  633.     }
  634.     public function setPrestataireTechniqueCheck(?bool $prestataireTechniqueCheck): self
  635.     {
  636.         $this->prestataireTechniqueCheck $prestataireTechniqueCheck;
  637.         return $this;
  638.     }
  639.     public function getPrestataireLogistiqueCheck(): ?bool
  640.     {
  641.         return $this->prestataireLogistiqueCheck;
  642.     }
  643.     public function setPrestataireLogistiqueCheck(?bool $prestataireLogistiqueCheck): self
  644.     {
  645.         $this->prestataireLogistiqueCheck $prestataireLogistiqueCheck;
  646.         return $this;
  647.     }
  648.     public function getCreatedAt(): ?\DateTimeInterface
  649.     {
  650.         return $this->createdAt;
  651.     }
  652.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  653.     {
  654.         $this->createdAt $createdAt;
  655.         return $this;
  656.     }
  657.     public function getUser(): ?User
  658.     {
  659.         return $this->user;
  660.     }
  661.     public function setUser(?User $user): self
  662.     {
  663.         $this->user $user;
  664.         return $this;
  665.     }
  666.     /**
  667.      * @return Collection|Contact[]
  668.      */
  669.     public function getContacts(): Collection
  670.     {
  671.         return $this->contacts;
  672.     }
  673.     public function addContact(Contact $contact): self
  674.     {
  675.         if (!$this->contacts->contains($contact)) {
  676.             $this->contacts[] = $contact;
  677.             $contact->setStructure($this);
  678.         }
  679.         return $this;
  680.     }
  681.     public function removeContact(Contact $contact): self
  682.     {
  683.         if ($this->contacts->contains($contact)) {
  684.             $this->contacts->removeElement($contact);
  685.             // set the owning side to null (unless already changed)
  686.             if ($contact->getStructure() === $this) {
  687.                 $contact->setStructure(null);
  688.             }
  689.         }
  690.         return $this;
  691.     }
  692.     public function getReferent(): ?string
  693.     {
  694.         return $this->referent;
  695.     }
  696.     public function setReferent(string $referent): self
  697.     {
  698.         $this->referent $referent;
  699.         return $this;
  700.     }
  701.     public function getModifiedAt(): ?\DateTimeInterface
  702.     {
  703.         return $this->modifiedAt;
  704.     }
  705.     public function setModifiedAt(\DateTimeInterface $modifiedAt null): self
  706.     {
  707.         $this->modifiedAt $modifiedAt;
  708.         return $this;
  709.     }
  710.     public function getStatut(): ?string
  711.     {
  712.         return $this->statut;
  713.     }
  714.     public function setStatut(string $statut): self
  715.     {
  716.         $this->statut $statut;
  717.         return $this;
  718.     }
  719.     public function getStatutDate(): ?\DateTimeInterface
  720.     {
  721.         return $this->statutDate;
  722.     }
  723.     public function setStatutDate(\DateTimeInterface $statutDate): self
  724.     {
  725.         $this->statutDate $statutDate;
  726.         return $this;
  727.     }
  728.     public function getSituationPro(): ?string
  729.     {
  730.         return $this->situationPro;
  731.     }
  732.     public function setSituationPro(?string $situationPro): self
  733.     {
  734.         $this->situationPro $situationPro;
  735.         return $this;
  736.     }
  737.     /**
  738.      * @return Collection|ReseauSocial[]
  739.      */
  740.     public function getReseauxSociaux(): Collection
  741.     {
  742.         return $this->reseauxSociaux;
  743.     }
  744.     public function addReseauxSociaux(ReseauSocial $reseauxSociaux): self
  745.     {
  746.         if (!$this->reseauxSociaux->contains($reseauxSociaux)) {
  747.             $this->reseauxSociaux[] = $reseauxSociaux;
  748.             $reseauxSociaux->setStructure($this);
  749.         }
  750.         return $this;
  751.     }
  752.     public function removeReseauxSociaux(ReseauSocial $reseauxSociaux): self
  753.     {
  754.         if ($this->reseauxSociaux->contains($reseauxSociaux)) {
  755.             $this->reseauxSociaux->removeElement($reseauxSociaux);
  756.             // set the owning side to null (unless already changed)
  757.             if ($reseauxSociaux->getStructure() === $this) {
  758.                 $reseauxSociaux->setStructure(null);
  759.             }
  760.         }
  761.         return $this;
  762.     }
  763.     public function getStrSelected(): ?bool
  764.     {
  765.         return $this->strSelected;
  766.     }
  767.     public function setStrSelected(?bool $strSelected): self
  768.     {
  769.         $this->strSelected $strSelected;
  770.         return $this;
  771.     }
  772.     /**
  773.      * @param File|UploadedFile $kbisFile
  774.      */
  775.     public function setKbisFile(?File $kbisFile null): void
  776.     {
  777.         $this->kbisFile $kbisFile;
  778.         if (null !== $kbisFile) {
  779.             // Initialise $this->kbis si ce n'est pas déjà fait
  780.             if (null === $this->kbis) {
  781.                 $this->kbis = new EmbeddedFile();
  782.             }
  783.             // Met à jour la date de mise à jour pour déclencher les listeners Doctrine
  784.             $this->kbisUpdatedAt = new \DateTimeImmutable();
  785.         } else {
  786.             // Si $kbisFile est null, on peut optionnellement réinitialiser $this->kbis et $this->kbisUpdatedAt
  787.             // Cela dépend de votre logique métier
  788.             $this->kbis null;
  789.             $this->kbisUpdatedAt null;
  790.         }
  791.     }
  792.     public function getKbisFile(): ?File
  793.     {
  794.         return $this->kbisFile;
  795.     }
  796.     public function setKbis(EmbeddedFile $kbis)
  797.     {
  798.         $this->kbis $kbis;
  799.     }
  800.     public function getKbis(): ?EmbeddedFile
  801.     {
  802.         return $this->kbis;
  803.     }
  804. }