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

Breadcrumb

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

function Function_::setId

Sets function name

Parameters

Identifier $id Function name:

Return value

$this

1 method overrides Function_::setId()
FunctionDeclaration::setId in vendor/mck89/peast/lib/Peast/Syntax/Node/FunctionDeclaration.php
Sets the function identifier

File

vendor/mck89/peast/lib/Peast/Syntax/Node/Function_.php, line 84

Class

Function_
Abstract class for functions.

Namespace

Peast\Syntax\Node

Code

public function setId($id) {
    $this->assertType($id, "Identifier", true);
    $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