PHP Class Eloquent\Phony\Call\Arguments

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

Méthodes publiques

Méthode Description
__construct ( array $arguments ) Construct a new set of call arguments.
all ( ) : array Get the arguments.
copy ( ) : Arguments Copy these arguments, breaking any references.
count ( ) : integer Get the number of arguments.
create ( ) : Arguments Create a new set of call arguments from the supplied arguments.
get ( integer $index ) : mixed Get an argument by index.
getIterator ( ) : Iterator Get an iterator for these arguments.
has ( integer $index ) : boolean Returns true if the argument index exists.
set ( mixed $indexOrValue = null, mixed $value = null ) Set an argument by index.

Private Methods

Méthode Description
normalizeIndex ( $size, $index, &$normalized = null )

Method Details

__construct() public méthode

Construct a new set of call arguments.
public __construct ( array $arguments )
$arguments array The arguments.

all() public méthode

This method supports reference parameters.
public all ( ) : array
Résultat array

copy() public méthode

Copy these arguments, breaking any references.
public copy ( ) : Arguments
Résultat Arguments The copied arguments.

count() public méthode

Get the number of arguments.
public count ( ) : integer
Résultat integer The number of arguments.

create() public static méthode

Create a new set of call arguments from the supplied arguments.
public static create ( ) : Arguments
Résultat Arguments The arguments object.

get() public méthode

Negative indices are offset from the end of the list. That is, -1 indicates the last element, and -2 indicates the second last element.
public get ( integer $index ) : mixed
$index integer The index.
Résultat mixed The argument.

getIterator() public méthode

Get an iterator for these arguments.
public getIterator ( ) : Iterator
Résultat Iterator The iterator.

has() public méthode

Negative indices are offset from the end of the list. That is, -1 indicates the last element, and -2 indicates the second last element.
public has ( integer $index ) : boolean
$index integer The index.
Résultat boolean True if the argument exists.

set() public méthode

If called with no arguments, sets the first argument to null. If called with one argument, sets the first argument to $indexOrValue. If called with two arguments, sets the argument at $indexOrValue to $value.
public set ( mixed $indexOrValue = null, mixed $value = null )
$indexOrValue mixed The index, or value if no index is specified.
$value mixed The value.