GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ParseException   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 43
ccs 10
cts 10
cp 1
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setState() 0 2 1
A setBuffer() 0 2 1
A getState() 0 2 1
A getBuffer() 0 2 1
1
<?php
2
/**
3
 * Plasma Driver MySQL component
4
 * Copyright 2018-2019 PlasmaPHP, All Rights Reserved
5
 *
6
 * Website: https://github.com/PlasmaPHP
7
 * License: https://github.com/PlasmaPHP/driver-mysql/blob/master/LICENSE
8
*/
9
10
namespace Plasma\Drivers\MySQL\Messages;
11
12
/**
13
 * Represents an exception during message parsing.
14
 */
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 {
32 1
        $this->state = $state;
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 {
49 1
        $this->remainingBuffer = $buffer;
50 1
    }
51
    
52
    /**
53
     * Get the remaining buffer.
54
     * @return string|null
55
     */
56 2
    function getBuffer(): ?string {
57 2
        return $this->remainingBuffer;
58
    }
59
}
60