:octocat: make datamode field static

This commit is contained in:
codemasher
2021-01-23 01:26:11 +01:00
parent 700af4b53e
commit c06e3f1cd6
6 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ abstract class QRDataModeAbstract implements QRDataModeInterface{
/**
* the current data mode: Num, Alphanum, Kanji, Byte
*/
protected int $datamode;
protected static int $datamode;
/**
* The data to write
@@ -44,7 +44,7 @@ abstract class QRDataModeAbstract implements QRDataModeInterface{
* @inheritDoc
*/
public function getDataMode():int{
return $this->datamode;
return $this::$datamode;
}
}