original_string: public static function toArray() {
          $enumClass = get_called_class();
  
          if(!array_key_exists($enumClass, self::$cache)) {
              $reflector = new ReflectionClass($enumClass);
              self::$cache[$enumClass] = $reflector->getConstants();
          }
  
          return self::$cache[$enumClass];
      }
code: public static function toArray() {
          $enumClass = get_called_class();
  
          if(!array_key_exists($enumClass, self::$cache)) {
              $reflector = new ReflectionClass($enumClass);
              self::$cache[$enumClass] = $reflector->getConstants();
          }
  
          return self::$cache[$enumClass];
      }
code_tokens: public static function toArray ( ) { $ enumClass = get_called_class ( ) ; if ( ! array_key_exists ( $ enumClass , self :: $ cache ) ) { $ reflector = new ReflectionClass ( $ enumClass ) ; self :: $ cache [ $ enumClass ] = $ reflector -> getConstants ( ) ; } return self :: $ cache [ $ enumClass ] ; }
docstring: Translate the current enumeration to an associative array
  
  @return array
docstring_tokens: Translate the current enumeration to an associative array