public function getCfg($key = null)
    {
        if (!\strlen($key)) {
            return $this->cfg;
        }
        if (isset($this->cfg[$key])) {
            return $this->cfg[$key];
        }
        return null;
    }
public function getCfg($key = null)
    {
        if (!\strlen($key)) {
            return $this->cfg;
        }
        if (isset($this->cfg[$key])) {
            return $this->cfg[$key];
        }
        return null;
    }
public function getCfg ( $ key = null ) { if ( ! \ strlen ( $ key ) ) { return $ this -> cfg ; } if ( isset ( $ this -> cfg [ $ key ] ) ) { return $ this -> cfg [ $ key ] ; } return null ; }
Retrieve a configuration value

@param string $key what to get

@return mixed
Retrieve a configuration value