Completed
Push — master ( d5bf13...f6c4fd )
by Tim
11s
created

ArgvInput   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A hasOptionSpecified() 0 4 1
1
<?php
2
3
/**
4
 * TechDivision\Import\Cli\Console\ArgvInput
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\Console;
22
23
/**
24
 * Utility class containing the available visibility keys.
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 ArgvInput extends \Symfony\Component\Console\Input\ArgvInput
33
{
34
35
    /**
36
     * Queries whether or not, a option value HAS been specified on command line.
37
     *
38
     * @param string $name The option name to be queried
39
     *
40
     * @return boolean TRUE if the option has been specified, else FALSE
41
     */
42
    public function hasOptionSpecified($name)
43
    {
44
        return isset($this->options[$name]);
45
    }
46
}
47