:octocat: let QRDataModeInterface::write() return $this

This commit is contained in:
smiley
2023-03-13 15:14:59 +01:00
parent a7758f792d
commit 9977c51180
6 changed files with 11 additions and 6 deletions
+2 -1
View File
@@ -69,7 +69,7 @@ final class AlphaNum extends QRDataModeAbstract{
/**
* @inheritDoc
*/
public function write(BitBuffer $bitBuffer, int $versionNumber):void{
public function write(BitBuffer $bitBuffer, int $versionNumber):QRDataModeInterface{
$len = $this->getCharCount();
$bitBuffer
@@ -87,6 +87,7 @@ final class AlphaNum extends QRDataModeAbstract{
$bitBuffer->put(self::CHAR_TO_ORD[$this->data[$i]], 6);
}
return $this;
}
/**