smiley 9 лет назад
Родитель
Сommit
5a60e78ff8
2 измененных файлов с 6 добавлено и 5 удалено
  1. 2 1
      src/Data/QRDataInterface.php
  2. 4 4
      src/QRCode.php

+ 2 - 1
src/Data/QRDataInterface.php

@@ -15,7 +15,8 @@ namespace chillerlan\QRCode\Data;
 use chillerlan\QRCode\BitBuffer;
 
 /**
- *
+ * @property string data
+ * @property int    dataLength
  */
 interface QRDataInterface{
 

+ 4 - 4
src/QRCode.php

@@ -92,7 +92,7 @@ class QRCode{
 	 *
 	 * @param string                                      $data
 	 * @param \chillerlan\QRCode\Output\QROutputInterface $output
-	 * @param \chillerlan\QRCode\QROptions                $options
+	 * @param \chillerlan\QRCode\QROptions|null           $options
 	 */
 	public function __construct($data, QROutputInterface $output, QROptions $options = null){
 		$this->qrOutputInterface = $output;
@@ -101,8 +101,8 @@ class QRCode{
 	}
 
 	/**
-	 * @param string                       $data
-	 * @param \chillerlan\QRCode\QROptions $options
+	 * @param string                            $data
+	 * @param \chillerlan\QRCode\QROptions|null $options
 	 *
 	 * @return $this
 	 * @throws \chillerlan\QRCode\QRCodeException
@@ -128,7 +128,7 @@ class QRCode{
 			case Util::isAlphaNum($data):
 				$mode = Util::isNumber($data) ? QRConst::MODE_NUMBER : QRConst::MODE_ALPHANUM;
 				break;
-			case Util::isKanji($data)   :
+			case Util::isKanji($data):
 				$mode = QRConst::MODE_KANJI;
 				break;
 			default: