protected function convertNumericType($type)
{
switch ($type) {
case self::NUMERIC_TYPE_COMMIT:
return 'commit';
case self::NUMERIC_TYPE_TREE:
return 'tree';
case self::NUMERIC_TYPE_BLOB:
return 'blob';
case self::NUMERIC_TYPE_TAG:
return 'tag';
}
throw new InvalidTypeException(sprintf("Numeric type 0x%x unknown", $type));
}