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   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 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