\BaconQrCodeWriter

QR code writer.

Summary

Methods
Properties
Constants
__construct()
setRenderer()
getRenderer()
writeString()
writeFile()
No public properties found
No constants found
No protected methods found
$renderer
N/A
No private methods found
No private properties found
N/A

Properties

Methods

writeString()

writeString(string  $content, string  $encoding = \BaconQrCode\Encoder\Encoder::DEFAULT_BYTE_MODE_ECODING, integer  $ecLevel = \BaconQrCode\Common\ErrorCorrectionLevel::L) : string

Writes QR code and returns it as string.

Content is a string which should be encoded in UTF-8, in case there are non ASCII-characters present.

Parameters

string $content
string $encoding
integer $ecLevel

Throws

\BaconQrCode\Exception\InvalidArgumentException

Returns

string

writeFile()

writeFile(string  $content, string  $filename, string  $encoding = \BaconQrCode\Encoder\Encoder::DEFAULT_BYTE_MODE_ECODING, integer  $ecLevel = \BaconQrCode\Common\ErrorCorrectionLevel::L) : void

Writes QR code to a file.

Parameters

string $content
string $filename
string $encoding
integer $ecLevel