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

Breadcrumb

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

class Throw_

Hierarchy

  • class \PhpParser\Node\Expr\Throw_ extends \Node\Expr

Expanded class hierarchy of Throw_

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Throw_.php, line 7

Namespace

PhpParser\Node\Expr
View source
class Throw_ extends Node\Expr {
    
    /** @var Node\Expr Expression */
    public Node\Expr $expr;
    
    /**
     * Constructs a throw expression node.
     *
     * @param Node\Expr $expr Expression
     * @param array<string, mixed> $attributes Additional attributes
     */
    public function __construct(Node\Expr $expr, array $attributes = []) {
        $this->attributes = $attributes;
        $this->expr = $expr;
    }
    public function getSubNodeNames() : array {
        return [
            'expr',
        ];
    }
    public function getType() : string {
        return 'Expr_Throw';
    }

}

Members

Title Sort descending Modifiers Object type Summary
Throw_::$expr public property @var Node\Expr Expression
Throw_::getSubNodeNames public function
Throw_::getType public function
Throw_::__construct public function Constructs a throw expression node.

API Navigation

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