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 ( c84b74...6c770b )
by Charlotte
03:58
created

ProtocolOnNextCaller   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 35
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

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