Passed
Push — master ( 9c8d3b...04f5d8 )
by Oss
01:40
created

ColumnPath   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 28
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * @category    Brownie/BpmOnline
4
 * @author      Brownie <[email protected]>
5
 * @license     https://opensource.org/licenses/MIT
6
 */
7
8
namespace Brownie\BpmOnline\DataService\Column\Expression;
9
10
use Brownie\BpmOnline\DataService\Column\Expression;
11
12
/**
13
 * The path to the column relative to the root schema.
14
 *
15
 * @method string   getValue()  Returns column path.
16
 */
17
class ColumnPath extends Expression
18
{
19
20
    /**
21
     * Key depending on the ExpressionType property.
22
     *
23
     * @var string
24
     */
25
    protected $keyName = 'ColumnPath';
26
27
    /**
28
     * List of supported fields.
29
     *
30
     * @var array
31
     */
32
    protected $fields = [
33
        'value' => null,
34
    ];
35
36
    /**
37
     * Sets the input values.
38
     *
39
     * @param string $value Column path.
40
     */
41 3
    public function __construct($value)
42
    {
43 3
        parent::__construct([
44 3
            'value' => $value
45
        ]);
46 3
    }
47
}
48