菜谱项目

EncapsedStringPart.php 596B

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