original_string: protected static function initialize()
      {
          $class = static::class;
  
          if (static::$constants === null) {
              static::$constants = (new \ReflectionClass($class))->getConstants();
  
              foreach (static::names() as $name) {
                  static::$lcKeyMap[strtolower($name)] = $name;
              }
          }
      }
code: protected static function initialize()
      {
          $class = static::class;
  
          if (static::$constants === null) {
              static::$constants = (new \ReflectionClass($class))->getConstants();
  
              foreach (static::names() as $name) {
                  static::$lcKeyMap[strtolower($name)] = $name;
              }
          }
      }
code_tokens: protected static function initialize ( ) { $ class = static :: class ; if ( static :: $ constants === null ) { static :: $ constants = ( new \ ReflectionClass ( $ class ) ) -> getConstants ( ) ; foreach ( static :: names ( ) as $ name ) { static :: $ lcKeyMap [ strtolower ( $ name ) ] = $ name ; } } }
docstring: Cache the enum array statically so we only have to do reflection a single time.
docstring_tokens: Cache the enum array statically so we only have to do reflection a single time .