public function reset(
        $exclusions = [
            'contactClientModel',
            'tokenHelper',
            'em',
            'formModel',
            'eventModel',
            'contactModel',
            'pathsHelper',
            'coreParametersHelper',
            'filesystemLocal',
            'mailHelper',
            'scheduleModel',
            'utmSourceHelper',
        ]
    ) {
        foreach (array_diff_key(
                     get_class_vars(get_class($this)),
                     array_flip($exclusions)
                 ) as $name => $default) {
            $this->$name = $default;
        }

        return $this;
    }
public function reset(
        $exclusions = [
            'contactClientModel',
            'tokenHelper',
            'em',
            'formModel',
            'eventModel',
            'contactModel',
            'pathsHelper',
            'coreParametersHelper',
            'filesystemLocal',
            'mailHelper',
            'scheduleModel',
            'utmSourceHelper',
        ]
    ) {
        foreach (array_diff_key(
                     get_class_vars(get_class($this)),
                     array_flip($exclusions)
                 ) as $name => $default) {
            $this->$name = $default;
        }

        return $this;
    }
public function reset ( $ exclusions = [ 'contactClientModel' , 'tokenHelper' , 'em' , 'formModel' , 'eventModel' , 'contactModel' , 'pathsHelper' , 'coreParametersHelper' , 'filesystemLocal' , 'mailHelper' , 'scheduleModel' , 'utmSourceHelper' , ] ) { foreach ( array_diff_key ( get_class_vars ( get_class ( $ this ) ) , array_flip ( $ exclusions ) ) as $ name => $ default ) { $ this -> $ name = $ default ; } return $ this ; }
Reset local class variables.

@param array $exclusions optional array of local variables to keep current values

@return $this
Reset local class variables .