\Intervention\Image\CommandsStreamCommand

Summary

Methods
Properties
Constants
execute()
__construct()
argument()
getOutput()
hasOutput()
setOutput()
$arguments
No constants found
getStream()
$output
N/A
No private methods found
No private properties found
N/A

Properties

$arguments

$arguments : array

Arguments of command

Type

array

$output

$output : mixed

Output of command

Type

mixed

Methods

execute()

execute(\Intervention\Image\Image  $image) : bool

Builds PSR7 stream based on image data. Method uses Guzzle PSR7 implementation as easiest choice.

Parameters

\Intervention\Image\Image $image

Returns

bool —

__construct()

__construct(array  $arguments) : mixed

Creates new command instance

Parameters

array $arguments

Returns

mixed —

argument()

argument(int  $key) : \Intervention\Image\Commands\Argument

Creates new argument instance from given argument key

Parameters

int $key

Returns

\Intervention\Image\Commands\Argument —

getOutput()

getOutput() : mixed

Returns output data of current command

Returns

mixed —

hasOutput()

hasOutput() : bool

Determines if current instance has output data

Returns

bool —

setOutput()

setOutput(mixed  $value) : mixed

Sets output data of current command

Parameters

mixed $value

Returns

mixed —

getStream()

getStream(string  $data) : \Psr\Http\Message\StreamInterface

Create stream from given data

Parameters

string $data

Returns

\Psr\Http\Message\StreamInterface —