\Endroid\QrCode\WriterSvgWriter

Summary

Methods
Properties
Constants
writeDataUri()
writeFile()
supportsExtension()
getSupportedExtensions()
getName()
writeString()
getContentType()
No public properties found
No constants found
getMimeType()
No protected properties found
N/A
getMimeTypeFromUrl()
getMimeTypeFromPath()
addLogo()
getOpacity()
No private properties found
N/A

Methods

writeDataUri()

writeDataUri(\Endroid\QrCode\QrCodeInterface  $qrCode) : string

Parameters

\Endroid\QrCode\QrCodeInterface $qrCode

Returns

string —

writeFile()

writeFile(\Endroid\QrCode\QrCodeInterface  $qrCode, string  $path) : void

Parameters

\Endroid\QrCode\QrCodeInterface $qrCode
string $path

supportsExtension()

supportsExtension(string  $extension) : bool

Parameters

string $extension

Returns

bool —

getSupportedExtensions()

getSupportedExtensions() : string[]

Returns

string[] —

getName()

getName() : string

Returns

string —

writeString()

writeString(\Endroid\QrCode\QrCodeInterface  $qrCode) : string

Parameters

\Endroid\QrCode\QrCodeInterface $qrCode

Returns

string —

getContentType()

getContentType() : string

Returns

string —

getMimeType()

getMimeType(string  $path) : string

Parameters

string $path

Returns

string —

getMimeTypeFromUrl()

getMimeTypeFromUrl(string  $url) : string

Parameters

string $url

Returns

string —

getMimeTypeFromPath()

getMimeTypeFromPath(string  $path) : string

Parameters

string $path

Returns

string —

addLogo()

addLogo(\SimpleXMLElement  $svg, int  $imageWidth, int  $imageHeight, string  $logoPath, int  $logoWidth = null, int  $logoHeight = null, bool  $forceXlinkHref = false) : void

Parameters

\SimpleXMLElement $svg
int $imageWidth
int $imageHeight
string $logoPath
int $logoWidth
int $logoHeight
bool $forceXlinkHref

getOpacity()

getOpacity(int  $alpha) : float

Parameters

int $alpha

Returns

float —