PHP Trait Collections\TypeValidator

Datei anzeigen Open project: danielgsims/php-collections

Protected Methods

Method Description
validateItem ( $item, $target )
validateItems ( array $items, $type ) Validates an array of items

Private Methods

Method Description
determineScalar ( $type )
determineType ( $type, $keyType = false )
nonScalarTypeExists ( $type )

Method Details

validateItem() protected method

protected validateItem ( $item, $target )

validateItems() protected method

Validates an array of items
protected validateItems ( array $items, $type )
$items array an array of items to be validated