code: public function getName(bool $includeExtension = false): string
      {
          $filename = basename($this->path);
          if ($includeExtension) {
              return $filename;
          }
  
          return $this->splitName()[0];
      }
docs: Retrieve the file name with or without an extension
  
  @return string