Completed
Push — develop ( f11aab...a4697b )
by Alejandro
09:31
created

Module   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 2
c 3
b 0
f 0
lcom 0
cbo 0
dl 0
loc 15
ccs 4
cts 4
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfig() 0 4 1
A getConsoleUsage() 0 7 1
1
<?php
2
namespace AcMailer;
3
4
use Zend\Console\Adapter\AdapterInterface;
5
use Zend\ModuleManager\Feature\ConfigProviderInterface;
6
use Zend\ModuleManager\Feature\ConsoleUsageProviderInterface;
7
8
/**
9
 * Module class
10
 * @author Alejandro Celaya Alastrué
11
 * @link http://www.alejandrocelaya.com
12
 */
13
class Module implements ConfigProviderInterface, ConsoleUsageProviderInterface
14
{
15 1
    public function getConfig()
16
    {
17 1
        return include __DIR__ . '/../config/module.config.php';
18
    }
19
20 1
    public function getConsoleUsage(AdapterInterface $console)
21
    {
22
        return [
23
            'acmailer parse-config [--configKey=] [--format=(php|xml|ini|json)] [--outputFile=]'
24
                => 'Parses the configuration of AcMailer module <=v4.5.1 to the structure used in v5.0.0'
25 1
        ];
26
    }
27
}
28