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

Breadcrumb

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

function Switch_::__construct

Constructs a case node.

Parameters

Node\Expr $cond Condition:

Case_[] $cases Case list:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Switch_.php, line 20

Class

Switch_

Namespace

PhpParser\Node\Stmt

Code

public function __construct(Node\Expr $cond, array $cases, array $attributes = []) {
    $this->attributes = $attributes;
    $this->cond = $cond;
    $this->cases = $cases;
}

API Navigation

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