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

Boolean::getSubNodeNames()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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