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

Breadcrumb

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

function CatchClause::setParam

Sets the catch clause parameter

Parameters

Pattern $param Catch clause parameter:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/CatchClause.php, line 60

Class

CatchClause
A node that represents the catch clause in a try-catch statement.

Namespace

Peast\Syntax\Node

Code

public function setParam($param) {
    $this->assertType($param, "Pattern", true);
    $this->param = $param;
    return $this;
}

API Navigation

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