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

Nil   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 24
ccs 4
cts 4
cp 1
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 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