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.

ContainerAwareCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 5
rs 9.4285
c 2
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Dami\Cli\Command;
4
5
use Symfony\Component\Console\Command\Command;
6
use Symfony\Component\DependencyInjection\ContainerInterface;
7
8
abstract class ContainerAwareCommand extends AbstractCommand
9
{
10
    private $container;
11
12
    /**
13
     * Constructor.
14
     *
15
     * @param string             $name      Command name.
16
     * @param ContainerInterface $container Container instance.
17
     */
18
    public function __construct($name, ContainerInterface $container)
19
    {
20
        parent::__construct($name);
21
        $this->container = $container;
22
    }
23
24
     /**
25
     * Gets container instance.
26
     *
27
     * @return ContainerInterface
28
     */
29
    protected function getContainer()
30
    {
31
        return $this->container;
32
    }
33
}
34