mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-24 17:37:53 +00:00
🚿 some docblocks and typos
This commit is contained in:
@@ -13,11 +13,12 @@ namespace chillerlan\QRCode\Data;
|
||||
use chillerlan\QRCode\Common\Mode;
|
||||
|
||||
/**
|
||||
* abstract methods for the several data modes
|
||||
*/
|
||||
abstract class QRDataModeAbstract implements QRDataModeInterface{
|
||||
|
||||
/**
|
||||
* the current data mode: Num, Alphanum, Kanji, Byte
|
||||
* the current data mode: Num, Alphanum, Kanji, Hanzi, Byte
|
||||
*/
|
||||
protected static int $datamode;
|
||||
|
||||
@@ -55,6 +56,13 @@ abstract class QRDataModeAbstract implements QRDataModeInterface{
|
||||
return $this::$datamode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public static function convertEncoding(string $string):string{
|
||||
return $string;
|
||||
}
|
||||
|
||||
/**
|
||||
* shortcut
|
||||
*/
|
||||
@@ -62,13 +70,4 @@ abstract class QRDataModeAbstract implements QRDataModeInterface{
|
||||
return Mode::getLengthBitsForVersion(static::$datamode, $versionNumber);
|
||||
}
|
||||
|
||||
/**
|
||||
* encoding conversion helper
|
||||
*
|
||||
* @throws \chillerlan\QRCode\Data\QRCodeDataException
|
||||
*/
|
||||
public static function convertEncoding(string $string):string{
|
||||
return $string;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user