public function getSection($section, $default = -1)
    {
        // Return if section is defined.
        if (isset($this->config[$section])) {
            return $this->config[$section];
        }
        if ($default !== -1) {
            return $default;
        }

        // Find the default value (in default configuration definitions).
        $defaultClass = new \ReflectionClass(DefaultConfiguration::class);
        return $defaultClass->getStaticPropertyValue($section, null);

    }
public function getSection($section, $default = -1)
    {
        // Return if section is defined.
        if (isset($this->config[$section])) {
            return $this->config[$section];
        }
        if ($default !== -1) {
            return $default;
        }

        // Find the default value (in default configuration definitions).
        $defaultClass = new \ReflectionClass(DefaultConfiguration::class);
        return $defaultClass->getStaticPropertyValue($section, null);

    }
public function getSection ( $ section , $ default = - 1 ) { // Return if section is defined. if ( isset ( $ this -> config [ $ section ] ) ) { return $ this -> config [ $ section ] ; } if ( $ default !== - 1 ) { return $ default ; } // Find the default value (in default configuration definitions). $ defaultClass = new \ ReflectionClass ( DefaultConfiguration :: class ) ; return $ defaultClass -> getStaticPropertyValue ( $ section , null ) ; }
Get the whole set of the configuration section.

@param string $section section name.
@param mixed $default default value when undefined. Leave undefined to use the build-in defined defaults for the
section.

@return mixed

@codeCoverageIgnore ignore due to a coverage bug.
Get the whole set of the configuration section .