File.php 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static bool exists(string $path)
  5. * @method static string get(string $path, bool $lock = false)
  6. * @method static string sharedGet(string $path)
  7. * @method static mixed getRequire(string $path)
  8. * @method static mixed requireOnce(string $file)
  9. * @method static string hash(string $path)
  10. * @method static int put(string $path, string $contents, bool $lock = false)
  11. * @method static int prepend(string $path, string $data)
  12. * @method static int append(string $path, string $data)
  13. * @method static mixed chmod(string $path, int $mode = null)
  14. * @method static bool delete(string|array $paths)
  15. * @method static bool move(string $path, string $target)
  16. * @method static bool copy(string $path, string $target)
  17. * @method static void link(string $target, string $link)
  18. * @method static string name(string $path)
  19. * @method static string basename(string $path)
  20. * @method static string dirname(string $path)
  21. * @method static string extension(string $path)
  22. * @method static string type(string $path)
  23. * @method static string|false mimeType(string $path)
  24. * @method static int size(string $path)
  25. * @method static int lastModified(string $path)
  26. * @method static bool isDirectory(string $directory)
  27. * @method static bool isReadable(string $path)
  28. * @method static bool isWritable(string $path)
  29. * @method static bool isFile(string $file)
  30. * @method static array glob(string $pattern, int $flags = 0)
  31. * @method static \Symfony\Component\Finder\SplFileInfo[] files(string $directory, bool $hidden = false)
  32. * @method static \Symfony\Component\Finder\SplFileInfo[] allFiles(string $directory, bool $hidden = false)
  33. * @method static array directories(string $directory)
  34. * @method static bool makeDirectory(string $path, int $mode = 0755, bool $recursive = false, bool $force = false)
  35. * @method static bool moveDirectory(string $from, string $to, bool $overwrite = false)
  36. * @method static bool copyDirectory(string $directory, string $destination, int $options = null)
  37. * @method static bool deleteDirectory(string $directory, bool $preserve = false)
  38. * @method static bool cleanDirectory(string $directory)
  39. *
  40. * @see \Illuminate\Filesystem\Filesystem
  41. */
  42. class File extends Facade
  43. {
  44. /**
  45. * Get the registered name of the component.
  46. *
  47. * @return string
  48. */
  49. protected static function getFacadeAccessor()
  50. {
  51. return 'files';
  52. }
  53. }