ConfigurationHelper   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 33
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getConfiguration() 0 4 1
A getName() 0 4 1
1
<?php
2
3
namespace Rey\BitrixMigrations\ConsoleHelper;
4
5
use Symfony\Component\Console\Helper\Helper;
6
use Doctrine\DBAL\Migrations\Configuration\Configuration;
7
8
class ConfigurationHelper extends Helper
9
{
10
    /**
11
     * @var \Doctrine\DBAL\Migrations\Configuration\Configuration
12
     */
13
    private $configuration;
14
15
    /**
16
     * @param \Doctrine\DBAL\Migrations\Configuration\Configuration $configuration
17
     */
18
    public function __construct(Configuration $configuration)
19
    {
20
        $this->configuration = $configuration;
21
    }
22
23
    /**
24
     * Get Configuration instance
25
     *
26
     * @return \Doctrine\DBAL\Migrations\Configuration\Configuration
27
     */
28
    public function getConfiguration()
29
    {
30
        return $this->configuration;
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function getName()
37
    {
38
        return 'configuration';
39
    }
40
}
41