Completed
Push — master ( b2f26d...a9074c )
by Nikita
05:10
created

EncapsedStringPart   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getSubNodeNames() 0 3 1
1
<?php
2
3
namespace PhpParser\Node\Scalar;
4
5
use PhpParser\Node\Scalar;
6
7
class EncapsedStringPart extends Scalar
8
{
9
    /** @var string String value */
10
    public $value;
11
12
    /**
13
     * Constructs a node representing a string part of an encapsed string.
14
     *
15
     * @param string $value      String value
16
     * @param array  $attributes Additional attributes
17
     */
18
    public function __construct($value, array $attributes = array()) {
19
        parent::__construct($attributes);
20
        $this->value = $value;
21
    }
22
23
    public function getSubNodeNames() {
24
        return array('value');
25
    }
26
}
27