code: public function getConfig($name = null)
      {
          return is_null($name)
              ? $this->configs
              : (isset($this->configs[$name]) ? $this->configs[$name] : null);
      }
docs: Get Config
  
  @param null|string $name
  @return array|mixed|null