src/Enum.php
private static function getLabel($value)
    {
        self::bootClass();

        if (static::hasLabels() && isset(static::$labels[$value])) {
            return (string) static::$labels[$value];
        }

        return (string) $value;
    }
private static function getLabel($value)
    {
        self::bootClass();

        if (static::hasLabels() && isset(static::$labels[$value])) {
            return (string) static::$labels[$value];
        }

        return (string) $value;
    }
private static function getLabel ( $ value ) { self :: bootClass ( ) ; if ( static :: hasLabels ( ) && isset ( static :: $ labels [ $ value ] ) ) { return ( string ) static :: $ labels [ $ value ] ; } return ( string ) $ value ; }
Returns the label for a given value.

!!Make sure it only gets called after bootClass()!!

@param $value

@return string
Returns the label for a given value .