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

Breadcrumb

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

function ForStatement::setTest

Sets the test expression

Parameters

Expression $test Test expression:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/ForStatement.php, line 104

Class

ForStatement
A node that represents a for statement.

Namespace

Peast\Syntax\Node

Code

public function setTest($test) {
    $this->assertType($test, "Expression", true);
    $this->test = $test;
    return $this;
}

API Navigation

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