@@ 25-34 (lines=10) @@ | ||
22 | /** |
|
23 | * @return string |
|
24 | */ |
|
25 | public function dump(){ |
|
26 | ||
27 | $data = call_user_func([$this, $this->outputMode ?? QRCode::OUTPUT_MARKUP_SVG]); |
|
28 | ||
29 | if($this->options->cachefile !== null){ |
|
30 | $this->saveToFile($data); |
|
31 | } |
|
32 | ||
33 | return $data; |
|
34 | } |
|
35 | ||
36 | /** |
|
37 | * @return string|bool |
@@ 25-33 (lines=9) @@ | ||
22 | /** |
|
23 | * @return string |
|
24 | */ |
|
25 | public function dump():string{ |
|
26 | $data = call_user_func([$this, $this->outputMode ?? QRCode::OUTPUT_STRING_TEXT]); |
|
27 | ||
28 | if($this->options->cachefile !== null){ |
|
29 | $this->saveToFile($data); |
|
30 | } |
|
31 | ||
32 | return $data; |
|
33 | } |
|
34 | ||
35 | /** |
|
36 | * @return string |