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.
Test Failed
Push — master ( 9c8b5e...1077ea )
by Charlotte
03:13
created

ProtocolOnNextCaller   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 44
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getParser() 0 2 1
A getBuffer() 0 2 1
A setBuffer() 0 2 1
1
<?php
2
/**
3
 * Plasma Driver MySQL component
4
 * Copyright 2018 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;
11
12
/**
13
 * Protocol On Next object.
14
 * @internal
15
 */
16
class ProtocolOnNextCaller {
17
    /**
18
     * @var \Plasma\Drivers\MySQL\ProtocolParser
19
     */
20
    protected $parser;
21
    
22
    /**
23
     * @var string
24
     */
25
    protected $buffer;
26
    
27
    /**
28
     * Constructor.
29
     * @param \Plasma\Drivers\MySQL\ProtocolParser  $parser
30
     * @param string                                $buffer
31
     */
32 2
    function __construct(\Plasma\Drivers\MySQL\ProtocolParser $parser, string &$buffer) {
33 2
        $this->parser = $parser;
34 2
        $this->buffer = $buffer;
35 2
    }
36
    
37
    /**
38
     * Get the parser.
39
     * @return \Plasma\Drivers\MySQL\ProtocolParser
40
     */
41 2
    function getParser(): \Plasma\Drivers\MySQL\ProtocolParser {
42 2
        return $this->parser;
43
    }
44
    
45
    /**
46
     * Get the buffer.
47
     * @return string
48
     */
49 2
    function &getBuffer(): string {
50 2
        return $this->buffer;
51
    }
52
    
53
    /**
54
     * Set the buffer.
55
     * @param string  $buffer
56
     * @return void
57
     */
58 2
    function setBuffer(string $buffer): void {
59 2
        $this->buffer = $buffer;
60 2
    }
61
}
62