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

Breadcrumb

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

function ArrayPattern::setElements

Sets array elements

Parameters

Pattern[] $elements Array elements to set:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/ArrayPattern.php, line 53

Class

ArrayPattern
A node that represents an array binding pattern. For example: [a, b, c] = d

Namespace

Peast\Syntax\Node

Code

public function setElements($elements) {
    $this->assertArrayOf($elements, "Pattern", true);
    $this->elements = $elements;
    return $this;
}

API Navigation

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