ShellEnvironmentVariable::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 2
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