ArgvInput   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A hasOptionSpecified() 0 3 1
1
<?php
2
3
/**
4
 * TechDivision\Import\Cli\Console\ArgvInput
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\Console;
16
17
/**
18
 * Utility class containing the available visibility keys.
19
 *
20
 * @author    Tim Wagner <[email protected]>
21
 * @copyright 2016 TechDivision GmbH <[email protected]>
22
 * @license   https://opensource.org/licenses/MIT
23
 * @link      https://github.com/techdivision/import-cli-simple
24
 * @link      http://www.techdivision.com
25
 */
26
class ArgvInput extends \Symfony\Component\Console\Input\ArgvInput
27
{
28
29
    /**
30
     * Queries whether or not, a option value HAS been specified on command line.
31
     *
32
     * @param string $name The option name to be queried
33
     *
34
     * @return boolean TRUE if the option has been specified, else FALSE
35
     */
36
    public function hasOptionSpecified($name)
37
    {
38
        return isset($this->options[$name]);
39
    }
40
}
41