Completed
Pull Request — master (#50)
by Tim
03:01
created

ImportCategoriesCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 20
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 10 1
1
<?php
2
3
/**
4
 * TechDivision\Import\Cli\Command\ImportCategoriesCommand
5
 *
6
 * NOTICE OF LICENSE
7
 *
8
 * This source file is subject to the Open Software License (OSL 3.0)
9
 * that is available through the world-wide-web at this URL:
10
 * http://opensource.org/licenses/osl-3.0.php
11
 *
12
 * PHP version 5
13
 *
14
 * @author    Tim Wagner <[email protected]>
15
 * @copyright 2016 TechDivision GmbH <[email protected]>
16
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
 * @link      https://github.com/techdivision/import-cli-simple
18
 * @link      http://www.techdivision.com
19
 */
20
21
namespace TechDivision\Import\Cli\Command;
22
23
/**
24
 * The import command implementation.
25
 *
26
 * @author    Tim Wagner <[email protected]>
27
 * @copyright 2016 TechDivision GmbH <[email protected]>
28
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
29
 * @link      https://github.com/techdivision/import-cli-simple
30
 * @link      http://www.techdivision.com
31
 */
32
class ImportCategoriesCommand extends AbstractImportCommand
33
{
34
35
    /**
36
     * Configures the current command.
37
     *
38
     * @return void
39
     * @see \Symfony\Component\Console\Command\Command::configure()
40
     */
41
    protected function configure()
42
    {
43
44
        // initialize the command with the required/optional options
45
        $this->setName('import:categories')
46
             ->setDescription('Imports categories in the configured Magento 2 instance');
47
48
        // invoke the parent method
49
        parent::configure();
50
    }
51
}
52