2015-12-03 22:55:07 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace PhpParser\Node\Scalar;
|
|
|
|
|
|
|
|
use PhpParser\Node\Scalar;
|
|
|
|
|
|
|
|
class EncapsedStringPart extends Scalar
|
|
|
|
{
|
|
|
|
/** @var string String value */
|
|
|
|
public $value;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructs a node representing a string part of an encapsed string.
|
|
|
|
*
|
|
|
|
* @param string $value String value
|
|
|
|
* @param array $attributes Additional attributes
|
|
|
|
*/
|
2017-04-28 21:40:59 +02:00
|
|
|
public function __construct(string $value, array $attributes = array()) {
|
2015-12-03 22:55:07 +01:00
|
|
|
parent::__construct($attributes);
|
|
|
|
$this->value = $value;
|
|
|
|
}
|
|
|
|
|
2017-04-28 21:40:59 +02:00
|
|
|
public function getSubNodeNames() : array {
|
2015-12-03 22:55:07 +01:00
|
|
|
return array('value');
|
|
|
|
}
|
|
|
|
}
|