Skip to main content

PHP

Scopes

Supported facets

These facets are supported

Argument or parameter

  • Actual: An argument/parameter in a function call
  • Actual constructor: An argument/parameter in a constructor call
  • Actual constructor (iteration): Iteration scope of arguments in a constructor call, should be inside the parens of the argument list
  • Actual (iteration): Iteration scope of arguments in a function call, should be inside the parens of the argument list
  • Actual method: An argument/parameter in a method call
  • Actual method (iteration): Iteration scope of arguments in a method call, should be inside the parens of the argument list
  • Formal: A parameter in a function declaration
  • Formal constructor: A parameter in a constructor declaration
  • Formal constructor (iteration): Iteration scope of the formal parameters of a constructor declaration; should be the whole parameter list. The domain should be the entire function.
  • Formal (iteration): Iteration scope of the formal parameters of a function declaration; should be the whole parameter list. The domain should be the entire function.
  • Formal method: A parameter in a class method declaration
  • Formal method (iteration): Iteration scope of the formal parameters of a class method declaration; should be the whole parameter list. The domain should be the entire function.

Collection key

  • Map pair: Key (LHS) of a key-value pair of a map

Comment

  • Block: A block comment
  • Line: A line comment

Disqualify delimiter

  • Disqualify delimiter: Used to disqualify a token from being treated as a surrounding pair delimiter. This will usually be operators containing `>` or `<`, eg `<`, `<=`, `->`, etc

Name

  • Argument formal: The name of a parameter in a function declaration
  • Argument formal (iteration): Iteration scope of the names of the formal parameters of a function declaration; should be the whole parameter list
  • Assignment: Name (LHS) of an assignment
  • Field: Name (LHS) of a field in a class / interface
  • Variable: Name (LHS) of a variable declaration

Text fragment

  • String single line: Text fragment consisting of a single-line string

Type

  • Argument formal: Type of formal parameter in a function declaration
  • Argument formal (iteration): Iteration scope of the types of the formal parameters of a function declaration; should be the whole parameter list
  • Cast: A type cast
  • Field: Type of field in a class / interface

Value

  • Assignment: Value (RHS) of an assignment
  • Map pair: Value (RHS) of a key-value pair in a map
  • Return: Return value of a function
  • Variable: Value (RHS) of a variable declaration
  • Yield: Value of a yield statement

Unspecified facets

These facets are unspecified