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

Breadcrumb

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

function SwitchCase::setTest

Sets the test expression that is null in the "default" case

Parameters

Expression $test Test expression:

Return value

$this

File

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

Class

SwitchCase
A node that represents a case in a switch 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