ShellEnvironmentVariable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PHPSu\ShellCommandBuilder\Literal;
6
7
use PHPSu\ShellCommandBuilder\Exception\ShellBuilderException;
8
use PHPSu\ShellCommandBuilder\ShellInterface;
9
10
/**
11
 * @internal
12
 * @psalm-internal PHPSu\ShellCommandBuilder
13
 */
14
final class ShellEnvironmentVariable extends ShellWord
15
{
16
    protected $isEnvironmentVariable = true;
17
    protected $useAssignOperator = true;
18
    protected $nameUpperCase = true;
19
20
    /**
21
     * ShellArgument constructor.
22
     * @param string $option
23
     * @param ShellInterface|string $value
24
     * @throws ShellBuilderException
25
     */
26
    public function __construct(string $option, $value)
27
    {
28
        parent::__construct($option, $value);
29
    }
30
}
31