original_string: private final static function loadClass($fqcn)
      {
          $reflectionClass = new ReflectionClass($fqcn);
          $constants       = $reflectionClass->getConstants();
  
          foreach ($constants as $name => $value) {
              $instance = new $fqcn($fqcn, $name, $value);
  
              /* @var $instance Enum */
              if (is_callable([$instance, '__initEnum'])) {
                  $instance->__initEnum();
              }
  
              $instanceConstructorName = '__' . $name;
              if (is_callable([$instance, $instanceConstructorName])) {
                  $instance->$instanceConstructorName();
              }
  
              if (!isset(self::$instances[$fqcn])) {
                  self::$instances[$fqcn] = [];
              }
  
              self::$instances[$fqcn][$name] = $instance;
          }
      }
code: private final static function loadClass($fqcn)
      {
          $reflectionClass = new ReflectionClass($fqcn);
          $constants       = $reflectionClass->getConstants();
  
          foreach ($constants as $name => $value) {
              $instance = new $fqcn($fqcn, $name, $value);
  
              /* @var $instance Enum */
              if (is_callable([$instance, '__initEnum'])) {
                  $instance->__initEnum();
              }
  
              $instanceConstructorName = '__' . $name;
              if (is_callable([$instance, $instanceConstructorName])) {
                  $instance->$instanceConstructorName();
              }
  
              if (!isset(self::$instances[$fqcn])) {
                  self::$instances[$fqcn] = [];
              }
  
              self::$instances[$fqcn][$name] = $instance;
          }
      }
code_tokens: private final static function loadClass ( $ fqcn ) { $ reflectionClass = new ReflectionClass ( $ fqcn ) ; $ constants = $ reflectionClass -> getConstants ( ) ; foreach ( $ constants as $ name => $ value ) { $ instance = new $ fqcn ( $ fqcn , $ name , $ value ) ; /* @var $instance Enum */ if ( is_callable ( [ $ instance , '__initEnum' ] ) ) { $ instance -> __initEnum ( ) ; } $ instanceConstructorName = '__' . $ name ; if ( is_callable ( [ $ instance , $ instanceConstructorName ] ) ) { $ instance -> $ instanceConstructorName ( ) ; } if ( ! isset ( self :: $ instances [ $ fqcn ] ) ) { self :: $ instances [ $ fqcn ] = [ ] ; } self :: $ instances [ $ fqcn ] [ $ name ] = $ instance ; } }
docstring: Uses reflection to load and cache all value singletons of the class represented by the fqcn.
  
  @param string $fqcn FQCN of the enum
docstring_tokens: Uses reflection to load and cache all value singletons of the class represented by the fqcn .