Passed
Push — main ( 1fe2cd...c1deb1 )
by Dimitri
04:10
created

Storage::accessor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
1
<?php
2
3
/**
4
 * This file is part of Blitz PHP framework.
5
 *
6
 * (c) 2022 Dimitri Sitchet Tomkeu <[email protected]>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
12
namespace BlitzPHP\Facades;
13
14
use BlitzPHP\Container\Services;
15
16
/**
17
 * @method static array                                              allDirectories(string|null $directory = null)
18
 * @method static array                                              allFiles(string|null $directory = null)
19
 * @method static bool                                               append(string $path, string $data)
20
 * @method static \BlitzPHP\Filesystem\FilesystemInterface           build(array|string $config)
21
 * @method static void                                               buildTemporaryUrlsUsing(\Closure $callback)
22
 * @method static string|false                                       checksum(string $path, array $options = [])
23
 * @method static \BlitzPHP\Filesystem\FilesystemInterface           cloud()
24
 * @method static bool                                               copy(string $from, string $to)
25
 * @method static void                                               createDirectory(string $location, array $config = [])
26
 * @method static \BlitzPHP\Filesystem\FilesystemInterface           createFtpDriver(array $config)
27
 * @method static \BlitzPHP\Filesystem\FilesystemInterface           createLocalDriver(array $config)
28
 * @method static \BlitzPHP\Filesystem\FilesystemInterface           createS3Driver(array $config)
29
 * @method static \BlitzPHP\Filesystem\FilesystemInterface           createScopedDriver(array $config)
30
 * @method static \BlitzPHP\Filesystem\FilesystemInterface           createSftpDriver(array $config)
31
 * @method static bool                                               delete(array|string $paths)
32
 * @method static bool                                               deleteDirectory(string $directory)
33
 * @method static array                                              directories(string|null $directory = null, bool $recursive = false)
34
 * @method static bool                                               directoryExists(string $path)
35
 * @method static bool                                               directoryMissing(string $path)
36
 * @method static \BlitzPHP\Filesystem\FilesystemInterface           disk(string|null $name = null)
37
 * @method static \Symfony\Component\HttpFoundation\StreamedResponse download(string $path, string|null $name = null, array $headers = [])
38
 * @method static \BlitzPHP\Filesystem\FilesystemInterface           drive(string|null $name = null)
39
 * @method static bool                                               exists(string $path)
40
 * @method static \BlitzPHP\Filesystem\FilesystemManager             extend(string $driver, \Closure $callback)
41
 * @method static bool                                               fileExists(string $path)
42
 * @method static bool                                               fileMissing(string $path)
43
 * @method static array                                              files(string|null $directory = null, bool $recursive = false)
44
 * @method static int                                                fileSize(string $path)
45
 * @method static void                                               flushMacros()
46
 * @method static \BlitzPHP\Filesystem\FilesystemManager             forgetDisk(array|string $disk)
47
 * @method static string|null                                        get(string $path)
48
 * @method static \League\Flysystem\FilesystemAdapter                getAdapter()
49
 * @method static array                                              getConfig()
50
 * @method static string                                             getDefaultCloudDriver()
51
 * @method static string                                             getDefaultDriver()
52
 * @method static \League\Flysystem\FilesystemOperator               getDriver()
53
 * @method static string                                             getVisibility(string $path)
54
 * @method static bool                                               has(string $location)
55
 * @method static bool                                               hasMacro(string $name)
56
 * @method static int                                                lastModified(string $path)
57
 * @method static \League\Flysystem\DirectoryListing                 listContents(string $location, bool $deep = false)
58
 * @method static void                                               macro(string $name, callable|object $macro)
59
 * @method static mixed                                              macroCall(string $method, array $parameters)
60
 * @method static bool                                               makeDirectory(string $path)
61
 * @method static string|false                                       mimeType(string $path)
62
 * @method static bool                                               missing(string $path)
63
 * @method static void                                               mixin(object $mixin, bool $replace = true)
64
 * @method static bool                                               move(string $from, string $to)
65
 * @method static string                                             path(string $path)
66
 * @method static bool                                               prepend(string $path, string $data)
67
 * @method static bool                                               providesTemporaryUrls()
68
 * @method static void                                               purge(string|null $name = null)
69
 * @method static bool                                               put(string $path, resource|string $contents, mixed $options = [])
70
 * @method static string|false                                       putFile(string $path, \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file, mixed $options = [])
71
 * @method static string|false                                       putFileAs(string $path, \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file, string $name, mixed $options = [])
72
 * @method static string                                             read(string $location)
73
 * @method static resource|null                                      readStream(string $path)
74
 * @method static \Symfony\Component\HttpFoundation\StreamedResponse response(string $path, string|null $name = null, array $headers = [], string|null $disposition = 'inline')
75
 * @method static \BlitzPHP\Filesystem\FilesystemManager             set(string $name, mixed $disk)
76
 * @method static \BlitzPHP\Filesystem\FilesystemManager             setApplication(\Illuminate\Contracts\Foundation\Application $app)
77
 * @method static bool                                               setVisibility(string $path, string $visibility)
78
 * @method static int                                                size(string $path)
79
 * @method static string                                             temporaryUrl(string $path, \DateTimeInterface $expiration, array $options = [])
80
 * @method static \BlitzPHP\Filesystem\FilesystemAdapter|mixed       unless(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
81
 * @method static string                                             url(string $path)
82
 * @method static string                                             visibility(string $path)
83
 * @method static \BlitzPHP\Filesystem\FilesystemAdapter|mixed       when(\Closure|mixed|null $value = null, callable|null $callback = null, callable|null $default = null)
84
 * @method static void                                               write(string $location, string $contents, array $config = [])
85
 * @method static bool                                               writeStream(string $path, resource $resource, array $options = [])
86
 *
87
 * @see \BlitzPHP\Filesystem\FilesystemManager
88
 */
89
final class Storage extends Facade
90
{
91
    protected static function accessor(): object
92
    {
93 2
        return Services::storage();
94
    }
95
}
96