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.
Failed Conditions
Push — master ( f2da15...888a68 )
by Charlotte
05:28
created

ProtocolOnNextCaller::setBuffer()   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 1
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 \Plasma\BinaryBuffer
24
     */
25
    protected $buffer;
26
    
27
    /**
28
     * Constructor.
29
     * @param \Plasma\Drivers\MySQL\ProtocolParser  $parser
30
     * @param \Plasma\BinaryBuffer                  $buffer
31
     */
32
    function __construct(\Plasma\Drivers\MySQL\ProtocolParser $parser, \Plasma\BinaryBuffer $buffer) {
33
        $this->parser = $parser;
34
        $this->buffer = $buffer;
35
    }
36
    
37
    /**
38
     * Get the parser.
39
     * @return \Plasma\Drivers\MySQL\ProtocolParser
40
     */
41
    function getParser(): \Plasma\Drivers\MySQL\ProtocolParser {
42
        return $this->parser;
43
    }
44
    
45
    /**
46
     * Get the buffer.
47
     * @return \Plasma\BinaryBuffer
48
     */
49
    function getBuffer(): \Plasma\BinaryBuffer {
50
        return $this->buffer;
51
    }
52
}
53