Application   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 22
ccs 6
cts 6
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
namespace Rougin\Refinery\Console;
4
5
use Rougin\Describe\Describe;
6
use Rougin\Refinery\Builder;
7
use Rougin\Refinery\Manager;
8
use Symfony\Component\Console\Application as BaseApplication;
9
10
/**
11
 * Console Application
12
 *
13
 * @package Refinery
14
 * @author  Rougin Gutib <[email protected]>
15
 */
16
class Application extends BaseApplication
17
{
18
    const VERSION = '0.4.0';
19
20
    /**
21
     * Initializes the application instance.
22
     *
23
     * @param \Rougin\Refinery\Builder  $builder
24
     * @param \Rougin\Describe\Describe $describe
25
     * @param \Rougin\Refinery\Manager  $manager
26
     */
27 24
    public function __construct(Builder $builder, Describe $describe, Manager $manager)
28
    {
29 24
        parent::__construct('Refinery', self::VERSION);
30
31 24
        $this->add(new CreateCommand($builder, $describe, $manager));
32
33 24
        $this->add(new RevertCommand($manager));
34
35 24
        $this->add(new ResetCommand($manager));
36
37 24
        $this->add(new MigrateCommand($manager));
38 24
    }
39
}
40