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.

DuplicateUseCaseException   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 5
Bugs 3 Features 1
Metric Value
c 5
b 3
f 1
dl 0
loc 60
wmc 4
lcom 0
cbo 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getAlreadyRegisteredUseCase() 0 4 1
A getDuplicatedUseCase() 0 4 1
A getCommandClass() 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\UseCase\UseCaseInterface;
14
15
/**
16
 *
17
 * @author David Badura <[email protected]>
18
 */
19
class DuplicateUseCaseException extends Exception
20
{
21
    /**
22
     *
23
     * @var UseCaseInterface
24
     */
25
    protected $alreadyRegisteredUseCase;
26
27
    /**
28
     *
29
     * @var UseCaseInterface
30
     */
31
    protected $duplicatedUseCase;
32
33
    /**
34
     *
35
     * @var string
36
     */
37
    protected $commandClass;
38
39
    /**
40
     *
41
     * @param UseCaseInterface $alreadyRegisteredUseCase
42
     * @param UseCaseInterface $duplicatedUseCase
43
     * @param string           $commandClass
44
     */
45
    public function __construct(UseCaseInterface $alreadyRegisteredUseCase, UseCaseInterface $duplicatedUseCase, $commandClass)
46
    {
47
        $this->alreadyRegisteredUseCase = $alreadyRegisteredUseCase;
48
        $this->duplicatedUseCase        = $duplicatedUseCase;
49
        $this->commandClass             = $commandClass;
50
    }
51
52
    /**
53
     *
54
     * @return UseCaseInterface
55
     */
56
    public function getAlreadyRegisteredUseCase()
57
    {
58
        return $this->alreadyRegisteredUseCase;
59
    }
60
61
    /**
62
     *
63
     * @return UseCaseInterface
64
     */
65
    public function getDuplicatedUseCase()
66
    {
67
        return $this->duplicatedUseCase;
68
    }
69
70
    /**
71
     *
72
     * @return string
73
     */
74
    public function getCommandClass()
75
    {
76
        return $this->commandClass;
77
    }
78
}
79