:octocat: container properties -> protected

This commit is contained in:
smiley
2017-10-25 04:15:45 +02:00
parent 964f9be90c
commit eb56b38766
5 changed files with 29 additions and 29 deletions
+13 -13
View File
@@ -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;
}
+8 -8
View File
@@ -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 = '';
}
+3 -3
View File
@@ -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;
}
+3 -3
View File
@@ -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
View File
@@ -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;
}