public static function getConstantConfigByValue($value)
    {
        foreach (self::getConstants() as $constant) {
            if ($constant['value'] === $value) {
                return $constant;
            }
        }
        return false;
    }
public static function getConstantConfigByValue($value)
    {
        foreach (self::getConstants() as $constant) {
            if ($constant['value'] === $value) {
                return $constant;
            }
        }
        return false;
    }
public static function getConstantConfigByValue ( $ value ) { foreach ( self :: getConstants ( ) as $ constant ) { if ( $ constant [ 'value' ] === $ value ) { return $ constant ; } } return false ; }
Get a single enum constant configuration for a specific value.

@param int|string $value The value to find a constant config for.
@return array|bool
Get a single enum constant configuration for a specific value .