✨ optional file saving through QROutputInterface::dump()

This commit is contained in:
codemasher
2018-09-19 11:04:23 +02:00
parent c13e006947
commit a5486e5482
4 changed files with 38 additions and 20 deletions
+4 -3
View File
@@ -114,12 +114,13 @@ class QRCode{
/**
* Renders a QR Code for the given $data and QROptions
*
* @param string $data
* @param string $data
* @param string|null $file
*
* @return mixed
*/
public function render(string $data){
return $this->initOutputInterface($data)->dump();
public function render(string $data, string $file = null){
return $this->initOutputInterface($data)->dump($file);
}
/**