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.

TerminateEvent::setResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 4
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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\Event;
12
13
use APL\Response\ResponseInterface;
14
use APL\Command\CommandInterface;
15
use Symfony\Component\EventDispatcher\Event;
16
17
/**
18
 *
19
 * @author David Badura <[email protected]>
20
 */
21 View Code Duplication
class TerminateEvent extends Event
22
{
23
    /** @var CommandInterface */
24
    private $command;
25
26
    /** @var ResponseInterface */
27
    private $response;
28
29
    /**
30
     *
31
     * @param CommandInterface  $command
32
     * @param ResponseInterface $response
33
     */
34
    public function __construct(CommandInterface $command, ResponseInterface $response)
35
    {
36
        $this->command  = $command;
37
        $this->response = $response;
38
    }
39
40
    /**
41
     *
42
     * @param CommandInterface
43
     */
44
    public function getCommand()
45
    {
46
        return $this->command;
47
    }
48
49
    /**
50
     *
51
     * @param ResponseInterface $response
52
     */
53
    public function setResponse(ResponseInterface $response)
54
    {
55
        $this->response = $response;
56
    }
57
58
    /**
59
     *
60
     * @return ResponseInterface
61
     */
62
    public function getResponse()
63
    {
64
        return $this->response;
65
    }
66
}
67