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 ( 2f11d7...5b5bc3 )
by Arkadiusz
02:30
created

MigrationApiContainerAware   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getContainer() 0 4 1
1
<?php
2
3
namespace Czogori\DamiBundle\Migration;
4
5
use Dami\Migration\Api\MigrationApi;
6
use Rentgen\Schema\Manipulation;
7
use Rentgen\Schema\Info;
8
use Symfony\Component\DependencyInjection\ContainerInterface;
9
10
abstract class MigrationApiContainerAware extends MigrationApi
11
{
12
    private $container;
13
14
    /**
15
     * Constructor.
16
     *
17
     * @param Manipulation      $manipulation Manipulation instance.
18
     * @param Info              $info         Info instance.
19
     * @param ContainerInterfce $container    Container instance.
20
     */
21
    public function __construct(Manipulation $manipulation, Info $info, ContainerInterface $container)
22
    {
23
        parent::__construct($manipulation, $info);
24
        $this->container = $container;
25
    }
26
27
    /**
28
     * Get a container.
29
     *
30
     * @return ContainerInterfce|ContainerInterface
31
     */
32
    protected function getContainer()
33
    {
34
        return $this->container;
35
    }
36
37
}
38