src/Configurator.php
protected function setOptionnalsParameters(array $settings): void
    {
        if (\array_key_exists('save_queries', $settings)) {
            $this->saveQueries = (bool) $settings['save_queries'];
        }

        if (\array_key_exists('permanent_connection', $settings)) {
            $this->permanentConnection = (bool) $settings['permanent_connection'];
        }

        if (\array_key_exists('report_error', $settings)) {
            $this->setReportError($settings['report_error']);
        }

        if (\array_key_exists('charset', $settings)) {
            $this->setCharset($settings['charset']);
        }

        if (\array_key_exists('parameters', $settings)) {
            $this->setParameters($settings['parameters']);
        }
    }
protected function setOptionnalsParameters(array $settings): void
    {
        if (\array_key_exists('save_queries', $settings)) {
            $this->saveQueries = (bool) $settings['save_queries'];
        }

        if (\array_key_exists('permanent_connection', $settings)) {
            $this->permanentConnection = (bool) $settings['permanent_connection'];
        }

        if (\array_key_exists('report_error', $settings)) {
            $this->setReportError($settings['report_error']);
        }

        if (\array_key_exists('charset', $settings)) {
            $this->setCharset($settings['charset']);
        }

        if (\array_key_exists('parameters', $settings)) {
            $this->setParameters($settings['parameters']);
        }
    }
protected function setOptionnalsParameters ( array $ settings ) : void { if ( \ array_key_exists ( 'save_queries' , $ settings ) ) { $ this -> saveQueries = ( bool ) $ settings [ 'save_queries' ] ; } if ( \ array_key_exists ( 'permanent_connection' , $ settings ) ) { $ this -> permanentConnection = ( bool ) $ settings [ 'permanent_connection' ] ; } if ( \ array_key_exists ( 'report_error' , $ settings ) ) { $ this -> setReportError ( $ settings [ 'report_error' ] ) ; } if ( \ array_key_exists ( 'charset' , $ settings ) ) { $ this -> setCharset ( $ settings [ 'charset' ] ) ; } if ( \ array_key_exists ( 'parameters' , $ settings ) ) { $ this -> setParameters ( $ settings [ 'parameters' ] ) ; } }
@param array $settings

@throws DatabaseException
@param array $settings