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

Breadcrumb

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

function ForStatement::setInit

Sets the initializer

Parameters

VariableDeclaration|Expression $init Initializer:

Return value

$this

File

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

Class

ForStatement
A node that represents a for statement.

Namespace

Peast\Syntax\Node

Code

public function setInit($init) {
    $this->assertType($init, array(
        "VariableDeclaration",
        "Expression",
    ), true);
    $this->init = $init;
    return $this;
}

API Navigation

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