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 ( d13c9c...463153 )
by Charlotte
03:30
created

ProtocolOnNextCaller::getParser()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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 1
    function __construct(\Plasma\Drivers\MySQL\ProtocolParser $parser, string &$buffer) {
33 1
        $this->parser = $parser;
34 1
        $this->buffer = $buffer;
35 1
    }
36
    
37
    /**
38
     * Get the parser.
39
     * @return \Plasma\Drivers\MySQL\ProtocolParser
40
     */
41 1
    function getParser(): \Plasma\Drivers\MySQL\ProtocolParser {
42 1
        return $this->parser;
43
    }
44
    
45
    /**
46
     * Get the buffer.
47
     * @return string
48
     */
49 1
    function &getBuffer(): string {
50 1
        return $this->buffer;
51
    }
52
}
53