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

Breadcrumb

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

function Break_::__construct

Constructs a break node.

Parameters

null|Node\Expr $num Number of loops to break:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php, line 17

Class

Break_

Namespace

PhpParser\Node\Stmt

Code

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

API Navigation

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