original_string: public function load(string $configPath, $overwrite = false): void
      {
          if (!file_exists($configPath)) {
              return;
          }
          $config = include $configPath;
          if (!is_array($config) && !is_object($config)) {
              return;
          }
          if (is_object($config)) {
              $config = get_object_vars($config);
          }
          $this->loadArray($config, $overwrite);
      }
code: public function load(string $configPath, $overwrite = false): void
      {
          if (!file_exists($configPath)) {
              return;
          }
          $config = include $configPath;
          if (!is_array($config) && !is_object($config)) {
              return;
          }
          if (is_object($config)) {
              $config = get_object_vars($config);
          }
          $this->loadArray($config, $overwrite);
      }
code_tokens: public function load ( string $ configPath , $ overwrite = false ) : void { if ( ! file_exists ( $ configPath ) ) { return ; } $ config = include $ configPath ; if ( ! is_array ( $ config ) && ! is_object ( $ config ) ) { return ; } if ( is_object ( $ config ) ) { $ config = get_object_vars ( $ config ) ; } $ this -> loadArray ( $ config , $ overwrite ) ; }
docstring: Loads configuration from configuration file.
  @param string $configPath
  @param bool $overwrite = false
docstring_tokens: Loads configuration from configuration file .