PHP Класс Eloquent\Phony\Call\Arguments

Наследование: implements Countabl\Countable, implements IteratorAggregat\IteratorAggregate
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
normalizeIndex ( $size, $index, &$normalized = null )

Описание методов

__construct() публичный Метод

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

all() публичный Метод

This method supports reference parameters.
public all ( ) : array
Результат array

copy() публичный Метод

Copy these arguments, breaking any references.
public copy ( ) : Arguments
Результат Arguments The copied arguments.

count() публичный Метод

Get the number of arguments.
public count ( ) : integer
Результат integer The number of arguments.

create() публичный статический Метод

Create a new set of call arguments from the supplied arguments.
public static create ( ) : Arguments
Результат Arguments The arguments object.

get() публичный Метод

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.
Результат mixed The argument.

getIterator() публичный Метод

Get an iterator for these arguments.
public getIterator ( ) : Iterator
Результат Iterator The iterator.

has() публичный Метод

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.
Результат boolean True if the argument exists.

set() публичный Метод

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.