PHP Класс Phulp\Collection

Наследование: extends Doctrine\Common\Collections\ArrayCollection
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$type array Type of the elements.

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

Метод Описание
__construct ( array $collection = [], $type = null ) Initializes a new Collection.
__toString ( ) : string Returns a string representation of this object.
add ( $value ) {@inheritDoc}
getType ( ) : string Returns which is the type of the elements.
set ( $key, $value ) {@inheritDoc}

Защищенные методы

Метод Описание
checkType ( $item ) : boolean Checks the immutability of the elements type
getItemType ( mixed $item ) : string Returns which is the type of the item.

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

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

Initializes a new Collection.
public __construct ( array $collection = [], $type = null )
$collection array

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

Returns a string representation of this object.
public __toString ( ) : string
Результат string

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

{@inheritDoc}
public add ( $value )

checkType() защищенный Метод

Checks the immutability of the elements type
protected checkType ( $item ) : boolean
Результат boolean

getItemType() защищенный Метод

Returns which is the type of the item.
protected getItemType ( mixed $item ) : string
$item mixed
Результат string

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

Returns which is the type of the elements.
public getType ( ) : string
Результат string

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

{@inheritDoc}
public set ( $key, $value )

Описание свойств

$type защищенное свойство

Type of the elements.
protected array $type
Результат array