src/Hediet/Types/ArrayType.php
public function isAssignableFromValue($value)
    {
        if (!is_array($value))
            return false;
        foreach ($value as $key => $item)
        {
            if (!$this->itemType->isAssignableFromValue($item))
                return false;
            if (!$this->keyType->isAssignableFromValue($key))
                return false;
        }
        return true;
    }
public function isAssignableFromValue($value)
    {
        if (!is_array($value))
            return false;
        foreach ($value as $key => $item)
        {
            if (!$this->itemType->isAssignableFromValue($item))
                return false;
            if (!$this->keyType->isAssignableFromValue($key))
                return false;
        }
        return true;
    }
public function isAssignableFromValue ( $ value ) { if ( ! is_array ( $ value ) ) return false ; foreach ( $ value as $ key => $ item ) { if ( ! $ this -> itemType -> isAssignableFromValue ( $ item ) ) return false ; if ( ! $ this -> keyType -> isAssignableFromValue ( $ key ) ) return false ; } return true ; }
Checks whether the provided value is an array and all keys and values
are assignable to the key and value type of this instance.

@param mixed $value The provided value.
@return boolean
Checks whether the provided value is an array and all keys and values are assignable to the key and value type of this instance .