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

Breadcrumb

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

class ShellExec

Hierarchy

  • class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
    • class \PhpParser\Node\Expr extends \PhpParser\NodeAbstract
      • class \PhpParser\Node\Expr\ShellExec extends \PhpParser\Node\Expr

Expanded class hierarchy of ShellExec

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php, line 8

Namespace

PhpParser\Node\Expr
View source
class ShellExec extends Expr {
    
    /** @var (Expr|InterpolatedStringPart)[] Interpolated string array */
    public array $parts;
    
    /**
     * Constructs a shell exec (backtick) node.
     *
     * @param (Expr|InterpolatedStringPart)[] $parts Interpolated string array
     * @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 'Expr_ShellExec';
    }

}

Members

Title Sort descending Modifiers Object type Summary
ShellExec::$parts public property @var (Expr|InterpolatedStringPart)[] Interpolated string array
ShellExec::getSubNodeNames public function
ShellExec::getType public function
ShellExec::__construct public function Constructs a shell exec (backtick) node.

API Navigation

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