mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-31 12:38:22 +00:00
:octocat: container properties -> protected
This commit is contained in:
@@ -19,25 +19,25 @@ use chillerlan\QRCode\QRCode;
|
||||
*/
|
||||
class QRImageOptions extends QROutputOptionsAbstract{
|
||||
|
||||
public $type = QRCode::OUTPUT_IMAGE_PNG;
|
||||
protected $type = QRCode::OUTPUT_IMAGE_PNG;
|
||||
|
||||
public $base64 = true;
|
||||
protected $base64 = true;
|
||||
|
||||
public $pixelSize = 5;
|
||||
public $marginSize = 5;
|
||||
protected $pixelSize = 5;
|
||||
protected $marginSize = 5;
|
||||
|
||||
// not supported by jpg
|
||||
public $transparent = true;
|
||||
protected $transparent = true;
|
||||
|
||||
public $fgRed = 0;
|
||||
public $fgGreen = 0;
|
||||
public $fgBlue = 0;
|
||||
protected $fgRed = 0;
|
||||
protected $fgGreen = 0;
|
||||
protected $fgBlue = 0;
|
||||
|
||||
public $bgRed = 255;
|
||||
public $bgGreen = 255;
|
||||
public $bgBlue = 255;
|
||||
protected $bgRed = 255;
|
||||
protected $bgGreen = 255;
|
||||
protected $bgBlue = 255;
|
||||
|
||||
public $pngCompression = -1;
|
||||
public $jpegQuality = 85;
|
||||
protected $pngCompression = -1;
|
||||
protected $jpegQuality = 85;
|
||||
|
||||
}
|
||||
|
||||
@@ -19,20 +19,20 @@ use chillerlan\QRCode\QRCode;
|
||||
*/
|
||||
class QRMarkupOptions extends QROutputOptionsAbstract{
|
||||
|
||||
public $type = QRCode::OUTPUT_MARKUP_SVG;
|
||||
protected $type = QRCode::OUTPUT_MARKUP_SVG;
|
||||
|
||||
public $htmlRowTag = 'p';
|
||||
protected $htmlRowTag = 'p';
|
||||
|
||||
public $htmlOmitEndTag = true;
|
||||
protected $htmlOmitEndTag = true;
|
||||
|
||||
public $fgColor = '#000';
|
||||
protected $fgColor = '#000';
|
||||
|
||||
public $bgColor = '#fff';
|
||||
protected $bgColor = '#fff';
|
||||
|
||||
public $pixelSize = 5;
|
||||
protected $pixelSize = 5;
|
||||
|
||||
public $marginSize = 5;
|
||||
protected $marginSize = 5;
|
||||
|
||||
public $cssClass = '';
|
||||
protected $cssClass = '';
|
||||
|
||||
}
|
||||
|
||||
@@ -20,10 +20,10 @@ use chillerlan\QRCode\Container;
|
||||
abstract class QROutputOptionsAbstract{
|
||||
use Container;
|
||||
|
||||
public $type;
|
||||
protected $type;
|
||||
|
||||
public $eol = PHP_EOL;
|
||||
protected $eol = PHP_EOL;
|
||||
|
||||
public $cachefile = null;
|
||||
protected $cachefile = null;
|
||||
|
||||
}
|
||||
|
||||
@@ -19,10 +19,10 @@ use chillerlan\QRCode\QRCode;
|
||||
*/
|
||||
class QRStringOptions extends QROutputOptionsAbstract{
|
||||
|
||||
public $type = QRCode::OUTPUT_STRING_JSON;
|
||||
protected $type = QRCode::OUTPUT_STRING_JSON;
|
||||
|
||||
public $textDark = '#';
|
||||
protected $textDark = '#';
|
||||
|
||||
public $textLight = ' ';
|
||||
protected $textLight = ' ';
|
||||
|
||||
}
|
||||
|
||||
+2
-2
@@ -21,11 +21,11 @@ class QROptions{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $errorCorrectLevel = QRCode::ERROR_CORRECT_LEVEL_M;
|
||||
protected $errorCorrectLevel = QRCode::ERROR_CORRECT_LEVEL_M;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $typeNumber = null;
|
||||
protected $typeNumber = null;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user