1 | <?php |
||
17 | trait ChunkBySeparator |
||
18 | { |
||
19 | /** |
||
20 | * Chuck the tokens, splitting on the specified token types. |
||
21 | * |
||
22 | * @param Token[] $tokenList |
||
23 | * @param string[] $separatorList One of Token class constants |
||
24 | * @param bool $includeSeparator Whether to include an array containing just the separator that split the tokens. |
||
25 | * |
||
26 | * @return Token[][] |
||
27 | */ |
||
28 | 43 | private function chunk( |
|
55 | } |