FlySystemFile

in package
Implements File

Interfaces, Classes & Used Traits

File

Properties

private$fileSystem  : \League\Flysystem\FilesystemInterface                

private$fileName  : string                

Methods

public__construct(FilesystemInterface $fileSystem, string $fileName) : mixed

Parameters

$fileSystem : FilesystemInterface
$fileName : string

Returns

mixed

Returns the content of the file as a string.

publicgetContents() : string

Throws

\League\Flysystem\FileNotFoundException

Returns

string

Returns md5 hash of the file.

publicmd5() : string

Throws

\League\Flysystem\FileNotFoundException

Returns

string

Returns an relative path to the file.

publicpath() : string

Returns

string