php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php

27 lines
601 B
PHP
Raw Normal View History

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
*/
public function __construct(string $value, array $attributes = []) {
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 {
return ['value'];
2015-12-03 22:55:07 +01:00
}
}