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

Breadcrumb

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

function MemberExpression::setProperty

Sets the expression's property

Parameters

Expression|PrivateIdentifier $property Property:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/MemberExpression.php, line 94

Class

MemberExpression
A node that represents a member expression. For example: foo.bar

Namespace

Peast\Syntax\Node

Code

public function setProperty($property) {
    $this->assertType($property, array(
        "Expression",
        "PrivateIdentifier",
    ));
    $this->property = $property;
    return $this;
}

API Navigation

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