Property | Type | Description | |
---|---|---|---|
$type | array | Type of the elements. |
Method | 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} |
Method | 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 | ||
return | string |
protected getItemType ( mixed $item ) : string | ||
$item | mixed | |
return | string |