Debian Codegraph @

lib/3rdParty/composer/illuminate/support/Facades/File.php

raw symbols SCIP
1 <?php
2
3 namespace Illuminate\Support\Facades;
4
5 /**
6 * @method static bool exists(string $path)
7 * @method static bool missing(string $path)
8 * @method static string get(string $path, bool $lock = false)
9 * @method static array json(string $path, int $flags = 0, bool $lock = false)
10 * @method static string sharedGet(string $path)
11 * @method static mixed getRequire(string $path, array $data = [])
12 * @method static mixed requireOnce(string $path, array $data = [])
13 * @method static \Illuminate\Support\LazyCollection lines(string $path)
14 * @method static string|false hash(string $path, string $algorithm = 'md5')
15 * @method static int|bool put(string $path, string $contents, bool $lock = false)
16 * @method static void replace(string $path, string $content, int|null $mode = null)
17 * @method static void replaceInFile(array|string $search, array|string $replace, string $path)
18 * @method static int prepend(string $path, string $data)
19 * @method static int append(string $path, string $data, bool $lock = false)
20 * @method static mixed chmod(string $path, int|null $mode = null)
21 * @method static bool delete(string|array $paths)
22 * @method static bool move(string $path, string $target)
23 * @method static bool copy(string $path, string $target)
24 * @method static bool|null link(string $target, string $link)
25 * @method static void relativeLink(string $target, string $link)
26 * @method static string name(string $path)
27 * @method static string basename(string $path)
28 * @method static string dirname(string $path)
29 * @method static string extension(string $path)
30 * @method static string|null guessExtension(string $path)
31 * @method static string|false type(string $path)
32 * @method static string|false mimeType(string $path)
33 * @method static int size(string $path)
34 * @method static int lastModified(string $path)
35 * @method static bool isDirectory(string $directory)
36 * @method static bool isEmptyDirectory(string $directory, bool $ignoreDotFiles = false)
37 * @method static bool isReadable(string $path)
38 * @method static bool isWritable(string $path)
39 * @method static bool hasSameHash(string $firstFile, string $secondFile)
40 * @method static bool isFile(string $file)
41 * @method static array glob(string $pattern, int $flags = 0)
42 * @method static \Symfony\Component\Finder\SplFileInfo[] files(string $directory, bool $hidden = false, array|string|int $depth = 0)
43 * @method static \Symfony\Component\Finder\SplFileInfo[] allFiles(string $directory, bool $hidden = false)
44 * @method static array directories(string $directory, array|string|int $depth = 0)
45 * @method static array allDirectories(string $directory)
46 * @method static void ensureDirectoryExists(string $path, int $mode = 0755, bool $recursive = true)
47 * @method static bool makeDirectory(string $path, int $mode = 0755, bool $recursive = false, bool $force = false)
48 * @method static bool moveDirectory(string $from, string $to, bool $overwrite = false)
49 * @method static bool copyDirectory(string $directory, string $destination, int|null $options = null)
50 * @method static bool deleteDirectory(string $directory, bool $preserve = false)
51 * @method static bool deleteDirectories(string $directory)
52 * @method static bool cleanDirectory(string $directory)
53 * @method static \Illuminate\Filesystem\Filesystem|mixed when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
54 * @method static \Illuminate\Filesystem\Filesystem|mixed unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
55 * @method static void macro(string $name, object|callable $macro)
56 * @method static void mixin(object $mixin, bool $replace = true)
57 * @method static bool hasMacro(string $name)
58 * @method static void flushMacros()
59 *
60 * @see \Illuminate\Filesystem\Filesystem
61 */
62 class File extends Facade
63 {
64 /**
65 * Get the registered name of the component.
66 *
67 * @return string
68 */
69 protected static function getFacadeAccessor()
70 {
71 return 'files';
72 }
73 }