original_string: public static function instances()
      {
          $all = [];
          foreach (static::getNames() as $name => $val) {
              $all[] = new static($name, $val);
          }
          return $all;
      }
code: public static function instances()
      {
          $all = [];
          foreach (static::getNames() as $name => $val) {
              $all[] = new static($name, $val);
          }
          return $all;
      }
code_tokens: public static function instances ( ) { $ all = [ ] ; foreach ( static :: getNames ( ) as $ name => $ val ) { $ all [ ] = new static ( $ name , $ val ) ; } return $ all ; }
docstring: Gets all enums
  
  @return Enum[]
docstring_tokens: Gets all enums