code: public function setExt(string $ext)
      {
          if (substr($ext, 0, 1) !== '.') {
              $ext = '.' . $ext;
          }
  
          $this->config['ext'] = $ext;
      }
docs: Set the ext.
  
  @param string $ext