about summary refs log tree commit diff stats
path: root/vendor/nikic/php-parser/lib/PhpParser/Node/InterpolatedStringPart.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/nikic/php-parser/lib/PhpParser/Node/InterpolatedStringPart.php')
-rw-r--r--vendor/nikic/php-parser/lib/PhpParser/Node/InterpolatedStringPart.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/nikic/php-parser/lib/PhpParser/Node/InterpolatedStringPart.php b/vendor/nikic/php-parser/lib/PhpParser/Node/InterpolatedStringPart.php
new file mode 100644
index 0000000..576dac4
--- /dev/null
+++ b/vendor/nikic/php-parser/lib/PhpParser/Node/InterpolatedStringPart.php
@@ -0,0 +1,32 @@
+<?php declare(strict_types=1);
+
+namespace PhpParser\Node;
+
+use PhpParser\NodeAbstract;
+
+class InterpolatedStringPart extends NodeAbstract {
+    /** @var string String value */
+    public string $value;
+
+    /**
+     * Constructs a node representing a string part of an interpolated string.
+     *
+     * @param string $value String value
+     * @param array<string, mixed> $attributes Additional attributes
+     */
+    public function __construct(string $value, array $attributes = []) {
+        $this->attributes = $attributes;
+        $this->value = $value;
+    }
+
+    public function getSubNodeNames(): array {
+        return ['value'];
+    }
+
+    public function getType(): string {
+        return 'InterpolatedStringPart';
+    }
+}
+
+// @deprecated compatibility alias
+class_alias(InterpolatedStringPart::class, Scalar\EncapsedStringPart::class);