src/Hediet/Types/ArrayType.php
public function isAssignableFrom(Type $type)
    {
        if (!$type instanceof ArrayType)
            return false;
        if (!$type->itemType->equals($this->itemType))
            return false;
        if (!$type->keyType->equals($this->keyType))
            return false;
        
        return true;
    }
public function isAssignableFrom(Type $type)
    {
        if (!$type instanceof ArrayType)
            return false;
        if (!$type->itemType->equals($this->itemType))
            return false;
        if (!$type->keyType->equals($this->keyType))
            return false;
        
        return true;
    }
public function isAssignableFrom ( Type $ type ) { if ( ! $ type instanceof ArrayType ) return false ; if ( ! $ type -> itemType -> equals ( $ this -> itemType ) ) return false ; if ( ! $ type -> keyType -> equals ( $ this -> keyType ) ) return false ; return true ; }
Checks whether the provided type represents
an array whose key and value type are equal to the key and value type of this instance.

@param Type $type The provided type.
@return boolean
Checks whether the provided type represents an array whose key and value type are equal to the key and value type of this instance .