:octocat: rename QROptionsTrait::$imageBase64 to $outputBase64, deprecate old name and redirect calls

This commit is contained in:
smiley
2023-09-03 22:49:32 +02:00
parent ae4ba21b77
commit c69531ca20
29 changed files with 69 additions and 43 deletions
+28 -2
View File
@@ -105,7 +105,7 @@ trait QROptionsTrait{
/**
* Return the image resource instead of a render if applicable.
* This option overrides other output options, such as $cachefile and $imageBase64.
* This option overrides/ignores other output options, such as $cachefile and $outputBase64.
*
* Supported by the following modules:
*
@@ -127,10 +127,16 @@ trait QROptionsTrait{
protected ?string $cachefile = null;
/**
* Toggle base64 or raw image data (if applicable)
* @deprecated 5.0.0 use QROptions::$outputBase64 instead
* @see \chillerlan\QRCode\QROptions::$outputBase64
*/
protected bool $imageBase64 = true;
/**
* Toggle base64 data URI or raw data output (if applicable)
*/
protected bool $outputBase64 = true;
/**
* Newline string
*/
@@ -530,4 +536,24 @@ trait QROptionsTrait{
$this->circleRadius = max(0.1, min(0.75, $circleRadius));
}
/**
* redirect call to the new variable
*
* @deprecated 5.0.0 use QROptions::$outputBase64 instead
* @see \chillerlan\QRCode\QROptions::$outputBase64
*/
protected function set_imageBase64(bool $imageBase64):void{
$this->outputBase64 = $imageBase64;
}
/**
* redirect call to the new variable
*
* @deprecated 5.0.0 use QROptions::$outputBase64 instead
* @see \chillerlan\QRCode\QROptions::$outputBase64
*/
protected function get_imageBase64():bool{
return $this->outputBase64;
}
}