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

Breadcrumb

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

function ThrowStatement::setArgument

Sets the thrown expression

Parameters

Expression $argument The node to set:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/ThrowStatement.php, line 53

Class

ThrowStatement
A node that represents the throw statement. For example: throw err

Namespace

Peast\Syntax\Node

Code

public function setArgument(Expression $argument) {
    $this->argument = $argument;
    return $this;
}

API Navigation

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