| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function write(BitBuffer $bitBuffer, int $versionNumber):QRDataModeInterface{ |
||
| 48 | $len = $this->getCharCount(); |
||
| 49 | |||
| 50 | $bitBuffer |
||
| 51 | ->put(self::DATAMODE, 4) |
||
| 52 | ->put($len, $this::getLengthBits($versionNumber)) |
||
| 53 | ; |
||
| 54 | |||
| 55 | $i = 0; |
||
| 56 | |||
| 57 | while($i < $len){ |
||
| 58 | $bitBuffer->put(ord($this->data[$i]), 8); |
||
| 59 | $i++; |
||
| 60 | } |
||
| 61 | |||
| 62 | return $this; |
||
| 63 | } |
||
| 87 |