Documentation

Argument
in package

Table of Contents

Properties

$command  : AbstractCommand
Command with arguments
$key  : int
Key of argument in array

Methods

__construct()  : mixed
Creates new instance from given command and key
between()  : Argument
Determines that current argument value must be numeric between given values
getCommandName()  : string
Returns name of current arguments command
max()  : Argument
Determines that current argument must be under a maxiumum value
min()  : Argument
Determines that current argument must be over a minimum value
required()  : Argument
Defines current argument as required
type()  : Argument
Determines that current argument must be of given type
value()  : mixed
Returns value of current argument
isDigit()  : bool
Checks if value is "PHP" integer (120 but also 120.0)

Properties

$key

Key of argument in array

public int $key

Methods

between()

Determines that current argument value must be numeric between given values

public between(mixed $x, mixed $y) : Argument
Parameters
$x : mixed
$y : mixed
Return values
Argument

getCommandName()

Returns name of current arguments command

public getCommandName() : string
Return values
string

max()

Determines that current argument must be under a maxiumum value

public max(mixed $value) : Argument
Parameters
$value : mixed
Return values
Argument

min()

Determines that current argument must be over a minimum value

public min(mixed $value) : Argument
Parameters
$value : mixed
Return values
Argument

type()

Determines that current argument must be of given type

public type(mixed $type) : Argument
Parameters
$type : mixed
Return values
Argument

value()

Returns value of current argument

public value([mixed $default = null ]) : mixed
Parameters
$default : mixed = null

isDigit()

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

private isDigit(mixed $value) : bool
Parameters
$value : mixed
Return values
bool
Loading…
On this page

Search results