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

Breadcrumb

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

function SwitchCase::setConsequent

Sets the consequent statements array

Parameters

Expression[] $consequent Consequent statements array:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/SwitchCase.php, line 84

Class

SwitchCase
A node that represents a case in a switch statement.

Namespace

Peast\Syntax\Node

Code

public function setConsequent($consequent) {
    $this->assertArrayOf($consequent, "Statement");
    $this->consequent = $consequent;
    return $this;
}

API Navigation

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