ImportAttributesSetCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 18
ccs 0
cts 4
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 9 1
1
<?php
2
3
/**
4
 * TechDivision\Import\Cli\Command\ImportAttributesSetCommand
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 for importing attribute sets/groups.
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 ImportAttributesSetCommand 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_SET)
42
             ->setDescription('Imports attribute sets/groups in the configured Magento 2 instance');
43
44
        // invoke the parent method
45
        parent::configure();
46
    }
47
}
48