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

Breadcrumb

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

function ObjectPattern::setProperties

Sets object properties

Parameters

Property[] $properties Object properties:

Return value

$this

File

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

Class

ObjectPattern
A node that represents an object binding pattern. For example: var {a, b, c} = d

Namespace

Peast\Syntax\Node

Code

public function setProperties($properties) {
    $this->assertArrayOf($properties, array(
        "AssignmentProperty",
        "RestElement",
    ));
    $this->properties = $properties;
    return $this;
}
RSS feed
Powered by Drupal