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.

RequestOperationTrait   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 55
ccs 13
cts 13
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getMethod() 0 4 1
A getUri() 0 4 1
A getHeaders() 0 4 1
A getBody() 0 4 1
A addHeader() 0 4 1
A getResponseFactory() 0 4 1
1
<?php
2
3
namespace JumpCloud\Operation;
4
5
use JumpCloud\Request\RequestInterface;
6
7
/**
8
 * Class RequestOperationTrait
9
 * @package JumpCloud\Operation
10
 */
11
trait RequestOperationTrait
12
{
13
    /**
14
     * @var RequestInterface
15
     */
16
    private $request;
17
18
    /**
19
     * @inheritDoc
20
     */
21 12
    public function getMethod()
22
    {
23 12
        return $this->request->getMethod();
24
    }
25
26
    /**
27
     * @inheritDoc
28
     */
29 12
    public function getUri()
30
    {
31 12
        return $this->request->getUri();
32
    }
33
34
    /**
35
     * @inheritDoc
36
     */
37 12
    public function getHeaders()
38
    {
39 12
        return $this->request->getHeaders();
40
    }
41
42
    /**
43
     * @inheritDoc
44
     */
45 12
    public function getBody()
46
    {
47 12
        return $this->request->getBody();
48
    }
49
50
    /**
51
     * @inheritDoc
52
     */
53 12
    public function addHeader($header, $value)
54
    {
55 12
        $this->request->addHeader($header, $value);
56 12
    }
57
58
    /**
59
     * @inheritDoc
60
     */
61 12
    public function getResponseFactory()
62
    {
63 12
        return $this->request->getResponseFactory();
64
    }
65
}
66