Heratio Framework API Reference

sfCommandOption
in package

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

Constants

Properties

Methods

__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

getShortcut()

public getShortcut() : string|null
Return values
string|null

isParameterOptional()

public isParameterOptional() : bool
Return values
bool

isParameterRequired()

public isParameterRequired() : bool
Return values
bool

        
On this page

Search results