Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class ParseException extends \Plasma\Exception { |
||
17 | /** |
||
18 | * @var int|null |
||
19 | */ |
||
20 | protected $state; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $remainingBuffer = null; |
||
26 | |||
27 | /** |
||
28 | * Sets the new parser state |
||
29 | * @param int $state |
||
30 | * @return void |
||
31 | */ |
||
32 | 1 | function setState(int $state): void { |
|
34 | 1 | } |
|
35 | |||
36 | /** |
||
37 | * Get the new parser state. |
||
38 | * @return int|null |
||
39 | */ |
||
40 | 2 | function getState(): ?int { |
|
41 | 2 | return $this->state; |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * Sets the remaining buffer. |
||
46 | * @param string $buffer |
||
47 | * @return void |
||
48 | */ |
||
49 | 1 | function setBuffer(string $buffer): void { |
|
51 | 1 | } |
|
52 | |||
53 | /** |
||
54 | * Get the remaining buffer. |
||
55 | * @return string|null |
||
56 | */ |
||
57 | 2 | function getBuffer(): ?string { |
|
61 |