PHP Класс App\Services\Filesystem\LaravelFilesystem

Наследование: implements App\Services\Filesystem\FilesystemInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$fs

Открытые методы

Метод Описание
__construct ( Illuminate\Filesystem\Filesystem $fs )
delete ( string $path ) : boolean Delete a file.
get ( string $path ) : string Read a file.
put ( string $path, string $contents ) : mixed Write a file.

Описание методов

__construct() публичный Метод

public __construct ( Illuminate\Filesystem\Filesystem $fs )
$fs Illuminate\Filesystem\Filesystem

delete() публичный Метод

Delete a file.
public delete ( string $path ) : boolean
$path string File path
Результат boolean

get() публичный Метод

Read a file.
public get ( string $path ) : string
$path string File path
Результат string Contents

put() публичный Метод

Write a file.
public put ( string $path, string $contents ) : mixed
$path string File path
$contents string Contents to write a file
Результат mixed

Описание свойств

$fs защищенное свойство

protected $fs