Commit a4638d9c authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Mise en conformité traits interfaces

parent e9227e11
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ trait LdapConnecteurAwareTrait
     *
     * @return self
     */
    public function setConnecteurLdap(LdapConnecteur $connecteurLdap)
    public function setConnecteurLdap(?LdapConnecteur $connecteurLdap)
    {
        $this->connecteurLdap = $connecteurLdap;

+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ class TypeInterventionController extends AbstractController

        $typeIntervention          = $this->getEvent()->getParam('typeIntervention');
        $typeInterventionStructure = $this->getEvent()->getParam('typeInterventionStructure');
        $form                      = $this->getFormTypeInterventionStructureSaisie();
        $form                      = $this->getFormTypeInterventionTypeInterventionStructureSaisie();
        if (empty($typeInterventionStructure)) {
            $title                     = 'Ajouter une exception pour une structure';
            $typeInterventionStructure = $this->getServiceTypeInterventionStructure()->newEntity()
+4 −2
Original line number Diff line number Diff line
@@ -14,12 +14,13 @@ trait TypeInterventionStructureSaisieFormAwareTrait
    protected ?TypeInterventionStructureSaisieForm $formTypeInterventionTypeInterventionStructureSaisie = null;



    /**
     * @param TypeInterventionStructureSaisieForm $formTypeInterventionTypeInterventionStructureSaisie
     *
     * @return self
     */
    public function setFormTypeInterventionnStructureSaisie(?TypeInterventionStructureSaisieForm $formTypeInterventionTypeInterventionStructureSaisie)
    public function setFormTypeInterventionTypeInterventionStructureSaisie(?TypeInterventionStructureSaisieForm $formTypeInterventionTypeInterventionStructureSaisie)
    {
        $this->formTypeInterventionTypeInterventionStructureSaisie = $formTypeInterventionTypeInterventionStructureSaisie;

@@ -27,7 +28,8 @@ trait TypeInterventionStructureSaisieFormAwareTrait
    }


    public function getFormTypeInterventionStructureSaisie(): ?TypeInterventionStructureSaisieForm

    public function getFormTypeInterventionTypeInterventionStructureSaisie(): ?TypeInterventionStructureSaisieForm
    {
        if (!empty($this->formTypeInterventionTypeInterventionStructureSaisie)) {
            return $this->formTypeInterventionTypeInterventionStructureSaisie;