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

Breadcrumb

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

function AssignmentProperty::setValue

Sets the property value

Parameters

Pattern $value Property value:

Return value

$this

Overrides Property::setValue

File

vendor/mck89/peast/lib/Peast/Syntax/Node/AssignmentProperty.php, line 37

Class

AssignmentProperty
A node that represents a property in an object binding pattern. For example "a" in: var {a} = b

Namespace

Peast\Syntax\Node

Code

public function setValue($value) {
    $this->assertType($value, "Pattern");
    $this->value = $value;
    return $this;
}
RSS feed
Powered by Drupal