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

Breadcrumb

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

function Enum_::getNode

Returns the built class node.

Return value

Stmt\Enum_ The built enum node

Overrides Builder::getNode

File

vendor/nikic/php-parser/lib/PhpParser/Builder/Enum_.php, line 108

Class

Enum_

Namespace

PhpParser\Builder

Code

public function getNode() : PhpParser\Node {
    return new Stmt\Enum_($this->name, [
        'scalarType' => $this->scalarType,
        'implements' => $this->implements,
        'stmts' => array_merge($this->uses, $this->enumCases, $this->constants, $this->methods),
        '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