Completed
Pull Request — master (#251)
by
unknown
05:24
created

Nil::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 2
dl 0
loc 5
ccs 0
cts 4
cp 0
crap 2
rs 9.4285
1
<?php
2
3
namespace PHPSA\Node\Scalar;
4
5
class Nil extends \PhpParser\Node\Scalar
6
{
7
    /** @var null */
8
    public $value;
9
10
    /**
11
     * @param null $value
12
     * @param array $attributes Additional attributes
13
     */
14
    public function __construct($value = null, array $attributes = array())
15
    {
16
        parent::__construct($attributes);
17
        $this->value = $value;
18
    }
19
20
    //@codeCoverageIgnoreStart
21
    /**
22
     * @return array
23
     */
24
    public function getSubNodeNames()
25
    {
26
        return ['value'];
27
    }
28
    //@codeCoverageIgnoreEnd
29
}
30