/** * Get the basename of the filesystem object. * For files, this will return the file name with it's extension. * For directories and symbolic links, this will return the name of the directory or symbolic link. * * @param string|null $suffix [optional] Suffix to omit from the basename. Null to ignore this feature. * * @return string|null Basename of the filesystem object or null on failure. */ public function getBasename($suffix = null) { return FilesystemObjectHelper::getBasename($this, $suffix); }