Uploaded From CV. Swandhana Server

This commit is contained in:
Duidev Software House
2025-02-25 01:50:20 +00:00
committed by dwi_vendor
co-authored by dwi_vendor
parent ffddee22df
commit 27064a1f7e
15185 changed files with 2328844 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
namespace Fawno\PhpSerial\Config;
use ReflectionClass;
class StopBits {
//public const NONE = 0;
public const ONE = 1;
public const TWO = 2;
static function getConstants () : array {
return (new ReflectionClass(__CLASS__))->getConstants();
}
static function checkValue (int $const) : bool {
return in_array($const, self::getConstants());
}
}