AbstractEnum::isValidValue( string $value ): bool

In this article

Checks if a value is valid for this enum.

Parameters

$valuestringrequired
The value to check.

Return

bool True if value is valid.

Source

final public static function isValidValue(string $value): bool
{
    return in_array($value, self::getValues(), \true);
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.