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 ( b0e03a...4af0c2 )
by Tobias
02:50
created

LoopException::getQuery()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Geocoder package.
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 *
10
 * @license    MIT License
11
 */
12
13
namespace Geocoder\Plugin\Exception;
14
15
use Geocoder\Exception\Exception;
16
use Geocoder\Query\Query;
17
18
/**
19
 * Thrown when the Plugin Client detects an endless loop.
20
 *
21
 * @author Joel Wurtz <[email protected]>
22
 */
23
class LoopException extends \RuntimeException implements Exception
24
{
25
    /**
26
     * @var Query
27
     */
28
    private $query;
29
30
    public static function create($message, Query $query)
31
    {
32
        $ex = new self($message);
33
        $ex->query = $query;
34
35
        return $ex;
36
    }
37
38
    /**
39
     * @return Query
40
     */
41
    public function getQuery(): Query
42
    {
43
        return $this->query;
44
    }
45
}
46