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