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

Breadcrumb

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

function Method::getNode

Returns the built method node.

Return value

Stmt\ClassMethod The built method node

Overrides Builder::getNode

File

vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php, line 137

Class

Method

Namespace

PhpParser\Builder

Code

public function getNode() : Node {
    return new Stmt\ClassMethod($this->name, [
        'flags' => $this->flags,
        'byRef' => $this->returnByRef,
        'params' => $this->params,
        'returnType' => $this->returnType,
        'stmts' => $this->stmts,
        'attrGroups' => $this->attributeGroups,
    ], $this->attributes);
}

API Navigation

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