code: private static function validateConfig(array $config)
      {
          $requiredFields = [
              'type',
              'url',
              'handle',
          ];
  
          foreach ($requiredFields as $key) {
              if (! isset($config[$key])) {
                  throw new Exception\MissingArgumentException(
                      sprintf(
                          'The given config <code>%s</code> is missing.',
                          $key
                      )
                  );
              }
          }
      }
docs: @param array $config
  
  @throws Exception\MissingArgumentException