PHP Class mageekguy\atoum\script\arguments\parser

Inheritance: implements iteratorAggregate
Mostrar archivo Open project: atoum/atoum Class Usage Examples

Protected Properties

Property Type Description
$defaultHandler
$handlers
$priorities
$superglobals
$values

Public Methods

Method Description
__construct ( superglobals $superglobals = null )
__toString ( )
addHandler ( closure $handler, array $arguments, $priority )
argumentHasHandler ( $argument )
argumentIsHandled ( $argument )
getClosestArgument ( $argument, &$min = null )
getDefaultHandler ( )
getHandlers ( )
getIterator ( )
getPriorities ( )
getSuperglobals ( )
getValues ( $argument = null )
hasFoundArguments ( )
init ( array $array = [] )
invokeHandlers ( script $script, $argument, array $values )
isArgument ( $value )
parse ( script $script, array $array = [] )
resetHandlers ( )
resetValues ( )
setDefaultHandler ( closure $handler )
setSuperglobals ( superglobals $superglobals )
triggerHandlers ( $argument, array $values, script $script, &$argumentUsed = null )

Method Details

__construct() public method

public __construct ( superglobals $superglobals = null )
$superglobals mageekguy\atoum\superglobals

__toString() public method

public __toString ( )

addHandler() public method

public addHandler ( closure $handler, array $arguments, $priority )
$handler closure
$arguments array

argumentHasHandler() public method

public argumentHasHandler ( $argument )

argumentIsHandled() public method

public argumentIsHandled ( $argument )

getClosestArgument() public method

public getClosestArgument ( $argument, &$min = null )

getDefaultHandler() public method

public getDefaultHandler ( )

getHandlers() public method

public getHandlers ( )

getIterator() public method

public getIterator ( )

getPriorities() public method

public getPriorities ( )

getSuperglobals() public method

public getSuperglobals ( )

getValues() public method

public getValues ( $argument = null )

hasFoundArguments() public method

public hasFoundArguments ( )

init() public method

public init ( array $array = [] )
$array array

invokeHandlers() public method

public invokeHandlers ( script $script, $argument, array $values )
$script mageekguy\atoum\script
$values array

isArgument() public static method

public static isArgument ( $value )

parse() public method

public parse ( script $script, array $array = [] )
$script mageekguy\atoum\script
$array array

resetHandlers() public method

public resetHandlers ( )

resetValues() public method

public resetValues ( )

setDefaultHandler() public method

public setDefaultHandler ( closure $handler )
$handler closure

setSuperglobals() public method

public setSuperglobals ( superglobals $superglobals )
$superglobals mageekguy\atoum\superglobals

triggerHandlers() public method

public triggerHandlers ( $argument, array $values, script $script, &$argumentUsed = null )
$values array
$script mageekguy\atoum\script

Property Details

$defaultHandler protected_oe property

protected $defaultHandler

$handlers protected_oe property

protected $handlers

$priorities protected_oe property

protected $priorities

$superglobals protected_oe property

protected $superglobals

$values protected_oe property

protected $values