Completed
Push — master ( 72fa5d...7b936e )
by Rougin
06:36
created

Application::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 7
cts 7
cp 1
rs 9.8666
c 0
b 0
f 0
cc 1
nc 1
nop 3
crap 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 Royce 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