• [type] => 366 (T_DOC_COMMENT)
    • -- documentation comments not associated with a class, function, constant or variable
    • -- example: the @file comment

  • [type] => 352 (T_CLASS)
    • -- [comment] the doc comment for the class
    • -- [modifiers] array of modifiers like abstract
    • -- [name] the class name
    • -- [extends_1] names of interfaces extended
    • -- [body] body of the class

      • [type] => assignment (indicates a variable)
        • -- [comment] the doc comment for the variable
        • -- [modifiers] array of modifiers like public
        • -- [values] array of variables being defined

          • -- [operand_1] the name of the variable
          • -- [assign_1] indicates a default value is next
          • -- [operand_2] the default value

      • [type] => T_CONST (indicates a constant)
        • -- structure is same as that of the variable
        • -- example: not included in excerpt

  • [type] => 333 (T_FUNCTION)
    • -- [comment] the doc comment for the function
    • -- [modifiers] array of modifiers like protected
    • -- [name] the function name
    • -- [parameters] list of parameters with any default values similar to [values] above
    • -- [text] text of the function