\Intervention\Image\CommandsArgument

Summary

Methods
Properties
Constants
__construct()
getCommandName()
value()
required()
type()
between()
min()
max()
$command
$key
No constants found
No protected methods found
No protected properties found
N/A
isDigit()
No private properties found
N/A

Properties

$command

$command : \Intervention\Image\Commands\AbstractCommand

Command with arguments

Type

AbstractCommand

$key

$key : int

Key of argument in array

Type

int

Methods

__construct()

__construct(\Intervention\Image\Commands\AbstractCommand  $command, int  $key) : mixed

Creates new instance from given command and key

Parameters

\Intervention\Image\Commands\AbstractCommand $command
int $key

Returns

mixed —

getCommandName()

getCommandName() : string

Returns name of current arguments command

Returns

string —

value()

value(mixed  $default = null) : mixed

Returns value of current argument

Parameters

mixed $default

Returns

mixed —

required()

required() : \Intervention\Image\Commands\Argument

Defines current argument as required

Returns

\Intervention\Image\Commands\Argument —

type()

type(mixed  $type) : \Intervention\Image\Commands\Argument

Determines that current argument must be of given type

Parameters

mixed $type

Returns

\Intervention\Image\Commands\Argument —

between()

between(mixed  $x, mixed  $y) : \Intervention\Image\Commands\Argument

Determines that current argument value must be numeric between given values

Parameters

mixed $x
mixed $y

Returns

\Intervention\Image\Commands\Argument —

min()

min(mixed  $value) : \Intervention\Image\Commands\Argument

Determines that current argument must be over a minimum value

Parameters

mixed $value

Returns

\Intervention\Image\Commands\Argument —

max()

max(mixed  $value) : \Intervention\Image\Commands\Argument

Determines that current argument must be under a maxiumum value

Parameters

mixed $value

Returns

\Intervention\Image\Commands\Argument —

isDigit()

isDigit(mixed  $value) : bool

Checks if value is "PHP" integer (120 but also 120.0)

Parameters

mixed $value

Returns

bool —