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

Fake   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSubNodeNames() 0 4 1
A __construct() 0 7 1
1
<?php
2
3
namespace PHPSA\Node\Scalar;
4
5
class Fake extends \PhpParser\Node\Scalar
6
{
7
    /** @var mixed */
8
    public $value;
9
10
    /** @var mixed */
11
    public $type;
12
13
    /**
14
     * Constructs a fake node.
15
     *
16
     * @param mixed $value      Value of the Node
17
     * @param mixed $type      Type of the node
18
     * @param array $attributes Additional attributes
19
     */
20
    public function __construct($value, $type, array $attributes = array())
21
    {
22
        parent::__construct($attributes);
23
24
        $this->value = $value;
25
        $this->type = $type;
26
    }
27
28
    //@codeCoverageIgnoreStart
29
    public function getSubNodeNames()
30
    {
31
        return array('value', 'type');
32
    }
33
    //@codeCoverageIgnoreEnd
34
}
35