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

Breadcrumb

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

function ClassDeclaration::setId

Sets the class identifier

Parameters

Identifier $id Class identifier:

Return value

$this

Overrides Class_::setId

File

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

Class

ClassDeclaration
A node that represents a class declaration. For example: class test {}

Namespace

Peast\Syntax\Node

Code

public function setId($id) {
    $this->assertType($id, "Identifier");
    $this->id = $id;
    return $this;
}
RSS feed
Powered by Drupal