ConfigurationHelper::getConfiguration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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