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.

InvalidCriteria::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
ccs 7
cts 7
cp 1
rs 9.4286
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
3
namespace SebastianBerc\Repositories\Exceptions;
4
5
use SebastianBerc\Repositories\Contracts\CriteriaInterface;
6
use SebastianBerc\Repositories\Criteria;
7
8
/**
9
 * Class InvalidCriteria.
10
 *
11
 * @author  Sebastian Berć <[email protected]>
12
 * @copyright Copyright (c) Sebastian Berć
13
 */
14
class InvalidCriteria extends \Exception
15
{
16
    /**
17
     * Contains criteria full qualified class path to abstract class.
18
     *
19
     * @var string
20
     */
21
    private $abstract = Criteria::class;
22
23
    /**
24
     * Contains criteria full qualified class path to interface.
25
     *
26
     * @var string
27
     */
28
    private $interface = CriteriaInterface::class;
29
30
    /**
31
     * Create a new invalid criteria exception instance.
32
     */
33 2
    public function __construct()
34
    {
35 2
        parent::__construct(sprintf(
36 2
            "Criteria must extends '%s' abstract class or implements '%s' interface.",
37 2
            $this->abstract,
38 2
            $this->interface
39 2
        ));
40 2
    }
41
}
42