PHP Trait Collections\TypeValidator

Afficher le fichier Open project: danielgsims/php-collections

Méthodes protégées

Méthode Description
validateItem ( $item, $target )
validateItems ( array $items, $type ) Validates an array of items

Private Methods

Méthode Description
determineScalar ( $type )
determineType ( $type, $keyType = false )
nonScalarTypeExists ( $type )

Method Details

validateItem() protected méthode

protected validateItem ( $item, $target )

validateItems() protected méthode

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