File manager - Edit - /home/autoph/public_html/projects/api/vendor/endroid/qr-code/src/Writer/Result/PngResult.php
Back
<?php declare(strict_types=1); namespace Endroid\QrCode\Writer\Result; final class PngResult extends AbstractResult { /** @var mixed */ private $image; /** @param mixed $image */ public function __construct($image) { $this->image = $image; } /** @return mixed */ public function getImage() { return $this->image; } public function getString(): string { ob_start(); imagepng($this->image); return strval(ob_get_clean()); } public function getMimeType(): string { return 'image/png'; } }
| ver. 1.4 |
.
| PHP 8.0.30 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings