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.

PostCommandEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 5
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 2
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\Command\CommandInterface;
14
use APL\Response\ResponseInterface;
15
use Symfony\Component\EventDispatcher\Event;
16
17 View Code Duplication
class PostCommandEvent extends Event
18
{
19
    /** @var CommandInterface */
20
    private $command;
21
22
    /** @var ResponseInterface */
23
    private $response;
24
25
    /**
26
     *
27
     * @param CommandInterface  $command
28
     * @param ResponseInterface $response
29
     */
30
    public function __construct(CommandInterface $command, ResponseInterface $response)
31
    {
32
        $this->command  = $command;
33
        $this->response = $response;
34
    }
35
36
    /**
37
     *
38
     * @return CommandInterface
39
     */
40
    public function getCommand()
41
    {
42
        return $this->command;
43
    }
44
45
    /**
46
     *
47
     * @return ResponseInterface
48
     */
49
    public function getResponse()
50
    {
51
        return $this->response;
52
    }
53
}
54