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

Breadcrumb

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

function FunctionDeclaration::setId

Sets the function identifier

Parameters

Identifier $id Function identifier:

Return value

$this

Overrides Function_::setId

File

vendor/mck89/peast/lib/Peast/Syntax/Node/FunctionDeclaration.php, line 27

Class

FunctionDeclaration
A node that represents a function declaration For example: function test () {}

Namespace

Peast\Syntax\Node

Code

public function setId($id) {
    $this->assertType($id, "Identifier");
    $this->id = $id;
    return $this;
}

API Navigation

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