Total Complexity | 9 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | trait SpacingContextTrait |
||
9 | { |
||
10 | use ArgumentsTrait; |
||
11 | |||
12 | /** |
||
13 | * List of spacers. |
||
14 | * - Parser for a normal spacer. |
||
15 | * - `null` to disable spacing. |
||
16 | * - `true` to use the top-most spacer. |
||
17 | * |
||
18 | * @var Parser[]|null[]|bool[] |
||
19 | */ |
||
20 | private $spacers = []; |
||
21 | |||
22 | public function pushSpacer($skipper = null) |
||
23 | { |
||
24 | $this->spacers[] = ($skipper === null || $skipper === true) ? $skipper : $this->getArgument($skipper); |
||
25 | } |
||
26 | |||
27 | public function popSpacer() |
||
30 | } |
||
31 | |||
32 | public function skipSpacing($in, $offset) |
||
49 | } |
||
50 | } |