Completed
Pull Request — master (#237)
by
unknown
03:20
created

Nil   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 25
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

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
     * @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