<?phpnamespaceLeague\Flysystem;useRuntimeException;useSplFileInfo;classNotSupportedExceptionextendsRuntimeException{/** * Create a new exception for a link. * * @param SplFileInfo $file * * @return static */publicstaticfunctionforLink(SplFileInfo$file){$message='Links are not supported, encountered link at ';returnnewstatic($message.$file->getPathname());}/** * Create a new exception for a link. * * @param string $systemType * * @return static */publicstaticfunctionforFtpSystemType($systemType){$message="The FTP system type '$systemType' is currently not supported.";returnnewstatic($message);}}