Completed
Push — master ( 530c00...13d490 )
by Дмитрий
02:40
created

Nil::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 1
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
     * Constructs a boolean node.
12
     *
13
     * @param null $value
14
     * @param array $attributes Additional attributes
15
     */
16 9
    public function __construct($value = null, array $attributes = array())
17
    {
18 9
        parent::__construct($attributes);
19 9
        $this->value = $value;
20 9
    }
21
22
    //@codeCoverageIgnoreStart
23
    public function getSubNodeNames()
24
    {
25
        return array('value');
26
    }
27
    //@codeCoverageIgnoreEnd
28
}
29