src/Enums/EnumTrait.php
public static function isValidValue($value, $strict = false)
    {
        static::initialize();

        return (array_search($value, static::$constants, $strict) !== false);
    }
public static function isValidValue($value, $strict = false)
    {
        static::initialize();

        return (array_search($value, static::$constants, $strict) !== false);
    }
public static function isValidValue ( $ value , $ strict = false ) { static :: initialize ( ) ; return ( array_search ( $ value , static :: $ constants , $ strict ) !== false ) ; }
Check if a specific enum exists by value.

@param $value
@param bool $strict
@return bool
Check if a specific enum exists by value .