20 lines
407 B
PHP
20 lines
407 B
PHP
<?php
|
|
|
|
namespace App\Utilities;
|
|
|
|
final class FinanceLedgerFlowSummaryDataSource
|
|
{
|
|
public const MANUAL = '手动';
|
|
|
|
public const DIRECT = '银企直连';
|
|
|
|
public const OPTIONS = [self::MANUAL, self::DIRECT];
|
|
|
|
public static function normalize(mixed $value): string
|
|
{
|
|
$text = trim((string) ($value ?? ''));
|
|
|
|
return in_array($text, self::OPTIONS, true) ? $text : '';
|
|
}
|
|
}
|