PHP Класс Nelmio\Alice\ParameterBag

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

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

Метод Описание
__construct ( array $parameters = [] )
count ( )
get ( string $key ) : mixed
getIterator ( )
has ( string $key ) : boolean
toArray ( ) : array
with ( Parameter $parameter ) : self Returns a new instance which will include the passed parameter. If a parameter with that key already exist, it WILL NOT be overridden.
without ( string $key ) : self

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

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

public __construct ( array $parameters = [] )
$parameters array Keys/values pair of parameters

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

public count ( )

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

public get ( string $key ) : mixed
$key string
Результат mixed

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

public getIterator ( )

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

public has ( string $key ) : boolean
$key string
Результат boolean

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

public toArray ( ) : array
Результат array

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

Returns a new instance which will include the passed parameter. If a parameter with that key already exist, it WILL NOT be overridden.
public with ( Parameter $parameter ) : self
$parameter Parameter
Результат self

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

public without ( string $key ) : self
$key string
Результат self