PHP Class GetOptionKit\OptionCollection

Inheritance: implements IteratorAggregat\IteratorAggregate, implements Countabl\Countable
Afficher le fichier Open project: c9s/getoptionkit Class Usage Examples

Méthodes publiques

Свойство Type Description
$data
$longOptions Option[string]
$options Option[] read-only property
$shortOptions Option[string]

Méthodes publiques

Méthode 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 méthode

public __clone ( )

__construct() public méthode

public __construct ( )

add() public méthode

add( [option object] )
public add ( )

addOption() public méthode

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

all() public méthode

public all ( )

count() public méthode

public count ( )

find() public méthode

public find ( $name )

get() public méthode

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

getIterator() public méthode

public getIterator ( )

getLongOption() public méthode

public getLongOption ( $name )

getShortOption() public méthode

public getShortOption ( $name )

keys() public méthode

public keys ( )

size() public méthode

public size ( )

toArray() public méthode

public toArray ( )

Property Details

$data public_oe property

public $data

$longOptions public_oe property

public Option[string] $longOptions
Résultat Option[string]

$options public_oe property

read-only property
public Option[] $options
Résultat Option[]

$shortOptions public_oe property

public Option[string] $shortOptions
Résultat Option[string]