PHP Class GetOptionKit\OptionCollection

Inheritance: implements IteratorAggregat\IteratorAggregate, implements Countabl\Countable
ファイルを表示 Open project: c9s/getoptionkit Class Usage Examples

Public Properties

Property Type Description
$data
$longOptions Option[string]
$options Option[] read-only property
$shortOptions Option[string]

Public Methods

Method Description
__clone ( )
__construct ( )
add ( ) add( [spec string], [desc string] ).
addOption ( Option $spec ) Add option object.
all ( )
count ( )
find ( $name )
get ( $id ) * Get spec by spec id
getIterator ( )
getLongOption ( $name )
getShortOption ( $name )
keys ( )
size ( )
toArray ( )

Method Details

__clone() public method

public __clone ( )

__construct() public method

public __construct ( )

add() public method

add( [option object] )
public add ( )

addOption() public method

Add option object.
public addOption ( Option $spec )
$spec Option the option object.

all() public method

public all ( )

count() public method

public count ( )

find() public method

public find ( $name )

get() public method

* Get spec by spec id
public get ( $id )

getIterator() public method

public getIterator ( )

getLongOption() public method

public getLongOption ( $name )

getShortOption() public method

public getShortOption ( $name )

keys() public method

public keys ( )

size() public method

public size ( )

toArray() public method

public toArray ( )

Property Details

$data public_oe property

public $data

$longOptions public_oe property

public Option[string] $longOptions
return Option[string]

$options public_oe property

read-only property
public Option[] $options
return Option[]

$shortOptions public_oe property

public Option[string] $shortOptions
return Option[string]