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

Breadcrumb

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

function ExpressionStatement::setExpression

Sets the wrapped expression

Parameters

Expression $expression Wrapped expression:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/ExpressionStatement.php, line 52

Class

ExpressionStatement
A node that represents an expression statement and wraps another expression.

Namespace

Peast\Syntax\Node

Code

public function setExpression(Expression $expression) {
    $this->expression = $expression;
    return $this;
}

API Navigation

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