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

Breadcrumb

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

function TryStatement::setFinalizer

Sets the "finally" block

Parameters

BlockStatement $finalizer The "finally" block:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/TryStatement.php, line 115

Class

TryStatement
A node that represents a try-catch statement.

Namespace

Peast\Syntax\Node

Code

public function setFinalizer($finalizer) {
    $this->assertType($finalizer, "BlockStatement", true);
    $this->finalizer = $finalizer;
    return $this;
}

API Navigation

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