PHP Class GetOptionKit\OptionResult

create option result from array() OptionResult::create($spec, array( 'key' => 'value' ), array( ... arguments ... ) );
Inheritance: implements IteratorAggregat\IteratorAggregate, implements ArrayAcces\ArrayAccess
ファイルを表示 Open project: c9s/getoptionkit Class Usage Examples

Public Properties

Property Type Description
$arguments * arguments
$keys option specs, key => Option object

Public Methods

Method Description
__get ( $key )
__isset ( $key )
__set ( $key, $value )
addArgument ( Argument $arg )
create ( $specs, array $values = [], array $arguments = null )
get ( $key )
getArguments ( )
getIterator ( )
has ( $key )
offsetExists ( $name )
offsetGet ( $name )
offsetSet ( $name, $value )
offsetUnset ( $name )
set ( $key, Option $value )
toArray ( )

Method Details

__get() public method

public __get ( $key )

__isset() public method

public __isset ( $key )

__set() public method

public __set ( $key, $value )

addArgument() public method

public addArgument ( Argument $arg )
$arg Argument

create() public static method

public static create ( $specs, array $values = [], array $arguments = null )
$values array
$arguments array

get() public method

public get ( $key )

getArguments() public method

public getArguments ( )

getIterator() public method

public getIterator ( )

has() public method

public has ( $key )

offsetExists() public method

public offsetExists ( $name )

offsetGet() public method

public offsetGet ( $name )

offsetSet() public method

public offsetSet ( $name, $value )

offsetUnset() public method

public offsetUnset ( $name )

set() public method

public set ( $key, Option $value )
$value Option

toArray() public method

public toArray ( )

Property Details

$arguments public_oe property

* arguments
public $arguments

$keys public_oe property

option specs, key => Option object
public $keys