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

Schema   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 3
c 0
b 0
f 0
lcom 0
cbo 4
dl 0
loc 29
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCommands() 0 7 1
A export() 0 4 1
A import() 0 4 1
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
}