Свойство | Type | Description | |
---|---|---|---|
$type | array | Type of the elements. |
Méthode | Description | |
---|---|---|
__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} |
Méthode | Description | |
---|---|---|
checkType ( $item ) : boolean | Checks the immutability of the elements type | |
getItemType ( mixed $item ) : string | Returns which is the type of the item. |
public __construct ( array $collection = [], $type = null ) | ||
$collection | array |
public __toString ( ) : string | ||
Résultat | string |
protected getItemType ( mixed $item ) : string | ||
$item | mixed | |
Résultat | string |