sfCommandOption
Table of Contents
Constants
-
IS_ARRAY
= 8
-
PARAMETER_NONE
= 1
-
PARAMETER_OPTIONAL
= 4
-
PARAMETER_REQUIRED
= 2
Properties
-
$default
: mixed
-
$help
: string
-
$mode
: int
-
$name
: string
-
$shortcut
: string|null
Methods
-
__construct()
: mixed
-
acceptParameter()
: bool
-
getDefault()
: mixed
-
getHelp()
: string
-
getName()
: string
-
getShortcut()
: string|null
-
isArray()
: bool
-
isParameterOptional()
: bool
-
isParameterRequired()
: bool
IS_ARRAY
public
mixed
IS_ARRAY
= 8
PARAMETER_NONE
public
mixed
PARAMETER_NONE
= 1
PARAMETER_OPTIONAL
public
mixed
PARAMETER_OPTIONAL
= 4
PARAMETER_REQUIRED
public
mixed
PARAMETER_REQUIRED
= 2
$default
public
mixed
$default
$help
public
string
$help
$mode
public
int
$mode
$name
public
string
$name
$shortcut
public
string|null
$shortcut
__construct()
public
__construct(string $name[, string|null $shortcut = null ][, int $mode = self::PARAMETER_NONE ][, string $help = '' ][, mixed $default = null ]) : mixed
Parameters
-
$name
: string
-
-
$shortcut
: string|null
= null
-
-
$mode
: int
= self::PARAMETER_NONE
-
-
$help
: string
= ''
-
-
$default
: mixed
= null
-
acceptParameter()
public
acceptParameter() : bool
getDefault()
public
getDefault() : mixed
getHelp()
public
getHelp() : string
getName()
public
getName() : string
getShortcut()
public
getShortcut() : string|null
Return values
string|null
isArray()
public
isArray() : bool
isParameterOptional()
public
isParameterOptional() : bool
isParameterRequired()
public
isParameterRequired() : bool