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

Breadcrumb

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

function Class_::setId

Sets class name

Parameters

Identifier $id Class name:

Return value

$this

1 method overrides Class_::setId()
ClassDeclaration::setId in vendor/mck89/peast/lib/Peast/Syntax/Node/ClassDeclaration.php
Sets the class identifier

File

vendor/mck89/peast/lib/Peast/Syntax/Node/Class_.php, line 68

Class

Class_
Abstract class for classes.

Namespace

Peast\Syntax\Node

Code

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