Get index for closest sibling token of given kind.
public getTokenOfKindSibling ( integer $index, integer $direction, array $tokens = [], boolean $caseSensitive = true ) : integer | null | ||
$index | integer | token index |
$direction | integer | direction for looking, +1 or -1 |
$tokens | array | possible tokens |
$caseSensitive | boolean | perform a case sensitive comparison |
return | integer | null |