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.
Completed
Push — master ( 3308b4...466970 )
by Anton
02:28
created

CommandEvent::getOutput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
25
     * @param $input
26
     * @param $output
27
     * @param $exception
28
     * @param $exitCode
29
     */
30
    public function __construct(Command $command, InputInterface $input, OutputInterface $output, \Exception $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(): Command
43
    {
44
        return $this->command;
45
    }
46
47
    /**
48
     * @return InputInterface
49
     */
50
    public function getInput(): InputInterface
51
    {
52
        return $this->input;
53
    }
54
55
    /**
56
     * @return OutputInterface
57
     */
58
    public function getOutput(): OutputInterface
59
    {
60
        return $this->output;
61
    }
62
63
    /**
64
     * @return \Exception
65
     */
66
    public function getException(): \Exception
67
    {
68
        return $this->exception;
69
    }
70
71
    /**
72
     * @return mixed
73
     */
74
    public function getExitCode()
75
    {
76
        return $this->exitCode;
77
    }
78
}
79