src/Enum.php
private static function bootClass()
    {
        if (!array_key_exists(static::class, self::$meta)) {
            self::$meta[static::class] = (new \ReflectionClass(static::class))->getConstants();
            unset(self::$meta[static::class]['__default']);

            if (method_exists(static::class, 'boot')) {
                static::boot();
            }
        }
    }
private static function bootClass()
    {
        if (!array_key_exists(static::class, self::$meta)) {
            self::$meta[static::class] = (new \ReflectionClass(static::class))->getConstants();
            unset(self::$meta[static::class]['__default']);

            if (method_exists(static::class, 'boot')) {
                static::boot();
            }
        }
    }
private static function bootClass ( ) { if ( ! array_key_exists ( static :: class , self :: $ meta ) ) { self :: $ meta [ static :: class ] = ( new \ ReflectionClass ( static :: class ) ) -> getConstants ( ) ; unset ( self :: $ meta [ static :: class ] [ '__default' ] ) ; if ( method_exists ( static :: class , 'boot' ) ) { static :: boot ( ) ; } } }
Initializes the constants array for the class if necessary.
Initializes the constants array for the class if necessary .