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

Module::getConsoleUsage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
crap 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