This commit is contained in:
smiley
2024-02-27 14:41:48 +01:00
parent 266ffce775
commit b2255fe358
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ For the QRCode reader, either `ext-gd` or `ext-imagick` is required!
## Installation with [composer](https://getcomposer.org)
See [the installation guide](https://php-qrcode.readthedocs.io/en/v5.0.x/Usage-Installation.html) for more info!
See [the installation guide](https://php-qrcode.readthedocs.io/en/v5.0.x/Usage/Installation.html) for more info!
### Terminal
+4 -4
View File
@@ -146,18 +146,18 @@ abstract class QROutputAbstract implements QROutputInterface{
}
/**
* Prepares the value for the given input ()
* Prepares the value for the given input (return value depends on the output class)
*
* @param mixed $value
*
* @return mixed|null return value depends on the output class
* @return mixed|null
*/
abstract protected function prepareModuleValue($value);
/**
* Returns a default value for either dark or light modules
* Returns a default value for either dark or light modules (return value depends on the output class)
*
* @return mixed|null return value depends on the output class
* @return mixed|null
*/
abstract protected function getDefaultModuleValue(bool $isDark);
+5
View File
@@ -202,6 +202,11 @@ class QRCode{
/**
* Renders a QR Code for the given $data and QROptions, saves $file optionally
*
* Note: it is possible to add several data segments before calling this method with a valid $data string
* which will result in a mixed-mode QR Code with the given parameter as last element.
*
* @see https://github.com/chillerlan/php-qrcode/issues/246
*
* @return mixed
*/
public function render(string $data = null, string $file = null){