public static function isCompatible(string $fromType, string $toType): bool
    {
        switch (true) {
            case (($fromType == $toType) || ($toType == 'all' || $toType == 'bang')):
                $isCompatible = true;
                break;
            case (($fromType == 'int' || $fromType == 'integer') && $toType == 'number'):
                $isCompatible = true;
                break;
            default:
                $isCompatible = false;
        }

        return $isCompatible;
    }
public static function isCompatible(string $fromType, string $toType): bool
    {
        switch (true) {
            case (($fromType == $toType) || ($toType == 'all' || $toType == 'bang')):
                $isCompatible = true;
                break;
            case (($fromType == 'int' || $fromType == 'integer') && $toType == 'number'):
                $isCompatible = true;
                break;
            default:
                $isCompatible = false;
        }

        return $isCompatible;
    }
public static function isCompatible ( string $ fromType , string $ toType ) : bool { switch ( true ) { case ( ( $ fromType == $ toType ) || ( $ toType == 'all' || $ toType == 'bang' ) ) : $ isCompatible = true ; break ; case ( ( $ fromType == 'int' || $ fromType == 'integer' ) && $ toType == 'number' ) : $ isCompatible = true ; break ; default : $ isCompatible = false ; } return $ isCompatible ; }
Compare in and outport datatypes.

@param string $fromType
@param string $toType
@return bool
Compare in and outport datatypes .