프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$arithmeticTokens | array(int) | Tokens that represent arithmetic operators. | |
$assignmentTokens | array(int) | Tokens that represent assignments. | |
$blockOpeners | array(int) | Tokens that open code blocks. | |
$booleanOperators | array(int) | Tokens that perform boolean operations. | |
$bracketTokens | array(int) | Tokens that represent brackets and parenthesis. | |
$castTokens | array(int) | Tokens that represent casting. | |
$commentTokens | array(int) | Tokens that are comments. | |
$comparisonTokens | array(int) | Tokens that represent comparison operator. | |
$emptyTokens | array(int) | Tokens that don't represent code. | |
$equalityTokens | array(int) | Tokens that represent equality comparisons. | |
$functionNameTokens | array(int) | Mostly, these are just strings. But PHP tokeizes some language constructs and functions using their own tokens. | |
$heredocTokens | array(int) | Tokens that make up a heredoc string. | |
$includeTokens | array(int) | Tokens that include files. | |
$knownLengths | The token weightings. | ||
$methodPrefixes | array(int) | Tokens that can prefix a method name | |
$operators | array(int) | Tokens that perform operations. | |
$parenthesisOpeners | array(int) | Token types that open parenthesis. | |
$scopeModifiers | array(int) | Tokens that represent scope modifiers. | |
$scopeOpeners | array(int) | Tokens that are allowed to open scopes. | |
$stringTokens | array(int) | Note that T_STRINGS are NOT represented in this list. | |
$weightings | The token weightings. |
메소드 | 설명 | |
---|---|---|
getHighestWeightedToken ( array $tokens ) : integer | Returns the highest weighted token type. |
메소드 | 설명 | |
---|---|---|
__construct ( ) | A PHP_CodeSniffer_Tokens class cannot be constructed. |
public static getHighestWeightedToken ( array $tokens ) : integer | ||
$tokens | array | |
리턴 | integer | The highest weighted token. |
public static array(int) $arithmeticTokens | ||
리턴 | array(int) |
public static array(int) $assignmentTokens | ||
리턴 | array(int) |
public static array(int) $blockOpeners | ||
리턴 | array(int) |
public static array(int) $booleanOperators | ||
리턴 | array(int) |
public static array(int) $bracketTokens | ||
리턴 | array(int) |
public static array(int) $castTokens | ||
리턴 | array(int) |
public static array(int) $commentTokens | ||
리턴 | array(int) |
public static array(int) $comparisonTokens | ||
리턴 | array(int) |
public static array(int) $emptyTokens | ||
리턴 | array(int) |
public static array(int) $equalityTokens | ||
리턴 | array(int) |
public static array(int) $functionNameTokens | ||
리턴 | array(int) |
public static array(int) $heredocTokens | ||
리턴 | array(int) |
public static array(int) $includeTokens | ||
리턴 | array(int) |
public static array(int) $methodPrefixes | ||
리턴 | array(int) |
public static array(int) $operators | ||
리턴 | array(int) |
public static array(int) $parenthesisOpeners | ||
리턴 | array(int) |
public static array(int) $scopeModifiers | ||
리턴 | array(int) |
public static array(int) $scopeOpeners | ||
리턴 | array(int) |
public static array(int) $stringTokens | ||
리턴 | array(int) |