code: public function getCfg($key = null)
      {
          if (!\strlen($key)) {
              return $this->cfg;
          }
          if (isset($this->cfg[$key])) {
              return $this->cfg[$key];
          }
          return null;
      }
docs: Retrieve a configuration value
  
  @param string $key what to get
  
  @return mixed