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.
Completed
Push — master ( db31ee...a5f74a )
by Anderson
05:41
created

ErrorGetterTrait::getError()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace DoctrineElastic\Traiting;
4
5
/**
6
 * Trait ErrorGetterTrait
7
 * @author Andsalves <[email protected]>
8
 */
9
trait ErrorGetterTrait {
10
11
    protected $error;
12
13
    protected $detail;
14
15
    /**
16
     * @return mixed
17
     */
18
    public function getError() {
19
        return $this->error;
20
    }
21
22
    /**
23
     * @param mixed $error
24
     */
25
    public function setError($error) {
26
        $this->error = $error;
27
    }
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getDetail() {
33
        return $this->detail;
34
    }
35
36
    /**
37
     * @param mixed $detail
38
     */
39
    public function setDetail($detail) {
40
        $this->detail = $detail;
41
    }
42
}