Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. InterpolatedString.php

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

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\Scalar
View 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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal