Completed
Push — master ( fe083d...7d8d5f )
by Дмитрий
04:17
created

Nil   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 0
cts 4
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSubNodeNames() 0 4 1
A __construct() 0 5 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
    public function __construct($value = null, array $attributes = array())
17
    {
18
        parent::__construct($attributes);
19
        $this->value = $value;
20
    }
21
22
    //@codeCoverageIgnoreStart
23
    public function getSubNodeNames()
24
    {
25
        return array('value');
26
    }
27
    //@codeCoverageIgnoreEnd
28
}
29