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.

SecurityException   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 43
wmc 3
lcom 0
cbo 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getCommand() 0 4 1
A getPolicy() 0 4 1
1
<?php
2
3
/**
4
 *
5
 * Copyright 2014 Simon Mönch.
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace APL\Exception;
12
13
use APL\Command\CommandInterface;
14
use APL\Security\PolicyInterface;
15
16
/**
17
 *
18
 * @author David Badura <[email protected]>
19
 */
20
class SecurityException extends Exception
21
{
22
    /**
23
     *
24
     * @var CommandInterface
25
     */
26
    protected $command;
27
28
    /**
29
     *
30
     * @var PolicyInterface
31
     */
32
    protected $policy;
33
34
    /**
35
     *
36
     * @param CommandInterface $command
37
     * @param PolicyInterface $policy
38
     */
39
    public function __construct(CommandInterface $command, PolicyInterface $policy)
40
    {
41
        $this->command = $command;
42
        $this->policy  = $policy;
43
    }
44
45
    /**
46
     *
47
     * @return CommandInterface
48
     */
49
    public function getCommand()
50
    {
51
        return $this->command;
52
    }
53
54
    /**
55
     *
56
     * @return PolicyInterface
57
     */
58
    public function getPolicy()
59
    {
60
        return $this->policy;
61
    }
62
}
63