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.

BackendOperationFailedException::getOperation()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Cmp\Cache\Exceptions;
4
5
use Cmp\Cache\Cache;
6
use Exception;
7
8
/**
9
 * Class BackendOperationFailedException
10
 *
11
 * @package Cmp\Cache\Exceptions
12
 */
13
class BackendOperationFailedException extends CacheException
14
{
15
    const CODE = 1004;
16
17
    /**
18
     * @var Cache
19
     */
20
    private $cache;
21
22
    /**
23
     * @var string
24
     */
25
    private $operation;
26
27
    /**
28
     * InvalidCacheOperationException constructor.
29
     *
30
     * @param Cache          $cache
31
     * @param string         $operation
32
     * @param Exception|null $previous
33
     */
34 1
    public function __construct(Cache $cache, $operation, Exception $previous = null)
35
    {
36 1
        parent::__construct("Cache operation $operation failed for backend ".get_class($cache), $previous);
37 1
        $this->cache     = $cache;
38 1
        $this->operation = $operation;
39 1
    }
40
41
    /**
42
     * @return mixed
43
     */
44 1
    public function getCache()
45
    {
46 1
        return $this->cache;
47
    }
48
49
    /**
50
     * @return string
51
     */
52 1
    public function getOperation()
53
    {
54 1
        return $this->operation;
55
    }
56
}
57