Flow PHP

StdOutFilesystem implements Filesystem

FinalYes

Interfaces

Filesystem

Methods

__construct()  : mixed
appendTo()  : DestinationStream
create()  : DestinationStream
Bytes become visible whole at close().
fromArray()  : static
getSystemTmpDir()  : Path
list()  : Generator<string|int, FileStatus>
mount()  : Mount
mv()  : bool
normalize()  : null|array<string, mixed>
readFrom()  : SourceStream
rm()  : bool
status()  : FileStatus|null
supports()  : bool
True when this filesystem serves the given path's protocol.
writeTo()  : DestinationStream
Open destination stream for writing, if file already exists it will be overwritten.

Methods

__construct()

public __construct([Mount $mount = new Mount('stdout') ][, php_user_filter|null $filter = null ]) : mixed
Parameters
$mount : Mount = new Mount('stdout')
$filter : php_user_filter|null = null

fromArray()

public static fromArray(array<string|int, mixed> $configuration) : static
Parameters
$configuration : array<string|int, mixed>

untrusted: decoded from another process, validated here

Return values
static

normalize()

public normalize() : null|array<string, mixed>
Return values
null|array<string, mixed> —

null when this instance holds live state (a client, memory) and cannot be rebuilt

rm()

public rm(Path $path[, bool $recursive = true ]) : bool
Parameters
$path : Path
$recursive : bool = true
Return values
bool

supports()

True when this filesystem serves the given path's protocol.

public supports(Path $path) : bool
Parameters
$path : Path
Return values
bool
On this page

Search results