Checks if a value is valid for this enum.
Parameters
$valuestringrequired- The value to check.
Source
final public static function isValidValue(string $value): bool
{
return in_array($value, self::getValues(), \true);
}
Changelog
| Version | Description |
|---|---|
| 0.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.