Documentation

Pipe
in package
uses ForbidCloning, ForbidSerialization

FinalYes

Create a local stream where data written to the pipe is immediately available on the pipe.

Primarily useful for testing.

Table of Contents

Properties

$sink  : WritableStream
$source  : ReadableStream

Methods

__construct()  : mixed
__serialize()  : never
__unserialize()  : never
getSink()  : WritableStream
getSource()  : ReadableStream
__clone()  : mixed

Properties

Methods

__construct()

public __construct(int $bufferSize) : mixed
Parameters
$bufferSize : int

__unserialize()

public final __unserialize(array<string|int, mixed> $data) : never
Parameters
$data : array<string|int, mixed>
Return values
never

getSource()

public getSource() : ReadableStream
Return values
ReadableStream

Data written to the WritableStream returned by getSink() will be readable on this stream.


        
On this page

Search results