✏️ 正在编辑: ErrorCorrectionLevel.php
路径:
/srv/systems_dir/koruspay/vendor/endroid/qrcode/src/ErrorCorrectionLevel.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php declare(strict_types=1); /* * (c) Jeroen van den Enden <info@endroid.nl> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Endroid\QrCode; use BaconQrCode\Common\ErrorCorrectionLevel as BaconErrorCorrectionLevel; use MyCLabs\Enum\Enum; /** * @method static ErrorCorrectionLevel LOW() * @method static ErrorCorrectionLevel MEDIUM() * @method static ErrorCorrectionLevel QUARTILE() * @method static ErrorCorrectionLevel HIGH() * * @extends Enum<string> * @psalm-immutable */ class ErrorCorrectionLevel extends Enum { const LOW = 'low'; const MEDIUM = 'medium'; const QUARTILE = 'quartile'; const HIGH = 'high'; /** * @psalm-suppress ImpureMethodCall */ public function toBaconErrorCorrectionLevel(): BaconErrorCorrectionLevel { $name = strtoupper(substr($this->getValue(), 0, 1)); return BaconErrorCorrectionLevel::valueOf($name); } }
💾 保存文件
← 返回文件管理器