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

Breadcrumb

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

function TryCatch::__construct

Constructs a try catch node.

Parameters

Node\Stmt[] $stmts Statements:

Catch_[] $catches Catches:

null|Finally_ $finally Optional finally node:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TryCatch.php, line 23

Class

TryCatch

Namespace

PhpParser\Node\Stmt

Code

public function __construct(array $stmts, array $catches, ?Finally_ $finally = null, array $attributes = []) {
    $this->attributes = $attributes;
    $this->stmts = $stmts;
    $this->catches = $catches;
    $this->finally = $finally;
}

API Navigation

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