Completed
Pull Request — master (#20)
by
unknown
02:56
created

Schema::getCommands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Notamedia\ConsoleJedi\Schema;
4
5
use Notamedia\ConsoleJedi\Schema\Command\ExportCommand;
6
use Notamedia\ConsoleJedi\Schema\Command\ImportCommand;
7
8
/**
9
 * Class Schema
10
 * @package Notamedia\ConsoleJedi\Schema
11
 */
12
class Schema
13
{
14
    /**
15
     * @return array
16
     */
17
    public static function getCommands()
18
    {
19
        return [
20
            new ExportCommand(),
21
            new ImportCommand()
22
        ];
23
    }
24
25
    /**
26
     * @return Export
27
     */
28
    static public function export()
0 ignored issues
show
Coding Style introduced by
As per PSR2, the static declaration should come after the visibility declaration.
Loading history...
29
    {
30
        return new Export();
31
    }
32
33
    /**
34
     * @return Import
35
     */
36
    static public function import()
0 ignored issues
show
Coding Style introduced by
As per PSR2, the static declaration should come after the visibility declaration.
Loading history...
37
    {
38
        return new Import();
39
    }
40
}