ImportAttributesCommand::configure()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 9
rs 10
ccs 0
cts 4
cp 0
crap 2
1
<?php
2
3
/**
4
 * TechDivision\Import\Cli\Command\ImportAttributesCommand
5
 *
6
 * PHP version 7
7
 *
8
 * @author    Tim Wagner <[email protected]>
9
 * @copyright 2016 TechDivision GmbH <[email protected]>
10
 * @license   https://opensource.org/licenses/MIT
11
 * @link      https://github.com/techdivision/import-cli-simple
12
 * @link      http://www.techdivision.com
13
 */
14
15
namespace TechDivision\Import\Cli\Command;
16
17
use TechDivision\Import\Utils\CommandNames;
18
19
/**
20
 * The import command implementation.
21
 *
22
 * @author    Tim Wagner <[email protected]>
23
 * @copyright 2016 TechDivision GmbH <[email protected]>
24
 * @license   https://opensource.org/licenses/MIT
25
 * @link      https://github.com/techdivision/import-cli-simple
26
 * @link      http://www.techdivision.com
27
 */
28
class ImportAttributesCommand extends AbstractShortcutAwareImportCommand
29
{
30
31
    /**
32
     * Configures the current command.
33
     *
34
     * @return void
35
     * @see \Symfony\Component\Console\Command\Command::configure()
36
     */
37
    protected function configure()
38
    {
39
40
        // initialize the command with the required/optional options
41
        $this->setName(CommandNames::IMPORT_ATTRIBUTES)
42
             ->setDescription('Imports attributes in the configured Magento 2 instance');
43
44
        // invoke the parent method
45
        parent::configure();
46
    }
47
}
48