FillCommand
extends AbstractCommand
in package
Table of Contents
Properties
- $arguments : array<string|int, mixed>
- Arguments of command
- $output : mixed
- Output of command
Methods
- __construct() : mixed
- Creates new command instance
- argument() : Argument
- Creates new argument instance from given argument key
- execute() : bool
- Fills image with color or pattern
- getOutput() : mixed
- Returns output data of current command
- hasOutput() : bool
- Determines if current instance has output data
- setOutput() : mixed
- Sets output data of current command
Properties
$arguments
Arguments of command
public
array<string|int, mixed>
$arguments
$output
Output of command
protected
mixed
$output
Methods
__construct()
Creates new command instance
public
__construct(array<string|int, mixed> $arguments) : mixed
Parameters
- $arguments : array<string|int, mixed>
argument()
Creates new argument instance from given argument key
public
argument(int $key) : Argument
Parameters
- $key : int
Return values
Argumentexecute()
Fills image with color or pattern
public
execute(Image $image) : bool
Parameters
- $image : Image
Return values
boolgetOutput()
Returns output data of current command
public
getOutput() : mixed
hasOutput()
Determines if current instance has output data
public
hasOutput() : bool
Return values
boolsetOutput()
Sets output data of current command
public
setOutput(mixed $value) : mixed
Parameters
- $value : mixed