class InterpolatedString
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
- class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
- class \PhpParser\Node\Scalar extends \PhpParser\Node\Expr
- class \PhpParser\Node\Scalar\InterpolatedString extends \PhpParser\Node\Scalar
- class \PhpParser\Node\Scalar extends \PhpParser\Node\Expr
- class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
Expanded class hierarchy of InterpolatedString
2 files declare their use of InterpolatedString
- NodeDumper.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ NodeDumper.php - ParserAbstract.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ ParserAbstract.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Scalar/ InterpolatedString.php, line 9
Namespace
PhpParser\Node\ScalarView source
class InterpolatedString extends Scalar {
/** @var (Expr|InterpolatedStringPart)[] list of string parts */
public array $parts;
/**
* Constructs an interpolated string node.
*
* @param (Expr|InterpolatedStringPart)[] $parts Interpolated string parts
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(array $parts, array $attributes = []) {
$this->attributes = $attributes;
$this->parts = $parts;
}
public function getSubNodeNames() : array {
return [
'parts',
];
}
public function getType() : string {
return 'Scalar_InterpolatedString';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
InterpolatedString::$parts | public | property | @var (Expr|InterpolatedStringPart)[] list of string parts |
InterpolatedString::getSubNodeNames | public | function | |
InterpolatedString::getType | public | function | |
InterpolatedString::__construct | public | function | Constructs an interpolated string node. |