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.

PreCommandEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 4
Bugs 1 Features 1
Metric Value
c 4
b 1
f 1
dl 0
loc 23
wmc 2
lcom 0
cbo 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCommand() 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\Event;
12
13
use APL\Command\CommandInterface;
14
use Symfony\Component\EventDispatcher\Event;
15
16
class PreCommandEvent extends Event
17
{
18
    /** @var CommandInterface */
19
    private $command;
20
21
    /**
22
     *
23
     * @param CommandInterface $command
24
     */
25
    public function __construct(CommandInterface $command)
26
    {
27
        $this->command = $command;
28
    }
29
30
    /**
31
     *
32
     * @return CommandInterface
33
     */
34
    public function getCommand()
35
    {
36
        return $this->command;
37
    }
38
}
39