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.

CommandEvent::getCommand()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
nc 1
nop 0
dl 0
loc 3
c 0
b 0
f 0
cc 1
rs 10
ccs 0
cts 3
cp 0
crap 2
1
<?php
2
/* (c) Anton Medvedev <[email protected]>
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
8
namespace Deployer\Console;
9
10
use Symfony\Component\Console\Command\Command;
11
use Symfony\Component\Console\Input\InputInterface;
12
use Symfony\Component\Console\Output\OutputInterface;
13
14
class CommandEvent
15
{
16
    private $command;
17
    private $input;
18
    private $output;
19
    private $exception;
20
    private $exitCode;
21
22
    /**
23
     * CommandEvent constructor.
24
     * @param Command $command
25
     * @param InputInterface $input
26
     * @param OutputInterface $output
27
     * @param null|\Throwable $exception
28
     * @param int $exitCode
29
     */
30
    public function __construct(Command $command, InputInterface $input, OutputInterface $output, $exception = null, $exitCode = 0)
31
    {
32
        $this->command = $command;
33
        $this->input = $input;
34
        $this->output = $output;
35
        $this->exception = $exception;
36
        $this->exitCode = $exitCode;
37
    }
38
39
    /**
40
     * @return Command
41
     */
42
    public function getCommand()
43
    {
44
        return $this->command;
45
    }
46
47
    /**
48
     * @return InputInterface
49
     */
50
    public function getInput()
51
    {
52
        return $this->input;
53
    }
54
55
    /**
56
     * @return OutputInterface
57
     */
58
    public function getOutput()
59
    {
60
        return $this->output;
61
    }
62
63
    /**
64
     * @return \Throwable
65
     */
66
    public function getException()
67
    {
68
        return $this->exception;
69
    }
70
71
    /**
72
     * @return mixed
73
     */
74
    public function getExitCode()
75
    {
76
        return $this->exitCode;
77
    }
78
}
79