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.

ProtocolOnNextCaller   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 35
rs 10
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-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;
11
12
/**
13
 * Protocol On Next object.
14
 * @internal
15
 * @codeCoverageIgnore
16
 */
17
class ProtocolOnNextCaller {
18
    /**
19
     * @var \Plasma\Drivers\MySQL\ProtocolParser
20
     */
21
    protected $parser;
22
    
23
    /**
24
     * @var \Plasma\BinaryBuffer
25
     */
26
    protected $buffer;
27
    
28
    /**
29
     * Constructor.
30
     * @param \Plasma\Drivers\MySQL\ProtocolParser  $parser
31
     * @param \Plasma\BinaryBuffer                  $buffer
32
     */
33
    function __construct(\Plasma\Drivers\MySQL\ProtocolParser $parser, \Plasma\BinaryBuffer $buffer) {
34
        $this->parser = $parser;
35
        $this->buffer = $buffer;
36
    }
37
    
38
    /**
39
     * Get the parser.
40
     * @return \Plasma\Drivers\MySQL\ProtocolParser
41
     */
42
    function getParser(): \Plasma\Drivers\MySQL\ProtocolParser {
43
        return $this->parser;
44
    }
45
    
46
    /**
47
     * Get the buffer.
48
     * @return \Plasma\BinaryBuffer
49
     */
50
    function getBuffer(): \Plasma\BinaryBuffer {
51
        return $this->buffer;
52
    }
53
}
54