Просмотр исходного кода

:octocat: container properties -> protected

smiley 8 лет назад
Родитель
Сommit
eb56b38766

+ 13 - 13
src/Output/QRImageOptions.php

@@ -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
src/Output/QRMarkupOptions.php

@@ -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
src/Output/QROutputOptionsAbstract.php

@@ -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
src/Output/QRStringOptions.php

@@ -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
src/QROptions.php

@@ -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;
 
 }