Expression::getValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 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;
9
10
use Brownie\Util\StorageArray;
11
12
/**
13
 * Base class for expressing a selectable column.
14
 */
15
class Expression extends StorageArray
16
{
17
18
    /**
19
     * Key depending on the ExpressionType property.
20
     *
21
     * @var null|string
22
     */
23
    protected $keyName = null;
24
25
    /**
26
     * List of supported fields.
27
     *
28
     * @var array
29
     */
30
    protected $fields = [
31
        'value' => null,
32
    ];
33
34
    /**
35
     * Returns a key depending on the ExpressionType property.
36
     *
37
     * @return string|null
38
     */
39 4
    public function getKeyName()
40
    {
41 4
        return $this->keyName;
42
    }
43
44
    /**
45
     * Returns the value of an expression depending on the ExpressionType property.
46
     *
47
     * @return mixed
48
     */
49 6
    public function getValue()
50
    {
51 6
        return parent::/** @scrutinizer ignore-call */getValue();
52
    }
53
}
54