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

Breadcrumb

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

function Declaration::addStmt

Adds a statement.

Parameters

PhpParser\Node\Stmt|PhpParser\Builder $stmt The statement to add:

Return value

$this The builder instance (for fluid interface)

1 call to Declaration::addStmt()
Declaration::addStmts in vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php
Adds multiple statements.
7 methods override Declaration::addStmt()
Class_::addStmt in vendor/nikic/php-parser/lib/PhpParser/Builder/Class_.php
Adds a statement.
Enum_::addStmt in vendor/nikic/php-parser/lib/PhpParser/Builder/Enum_.php
Adds a statement.
Function_::addStmt in vendor/nikic/php-parser/lib/PhpParser/Builder/Function_.php
Adds a statement.
Interface_::addStmt in vendor/nikic/php-parser/lib/PhpParser/Builder/Interface_.php
Adds a statement.
Method::addStmt in vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php
Adds a statement.

... See full list

File

vendor/nikic/php-parser/lib/PhpParser/Builder/Declaration.php, line 19

Class

Declaration

Namespace

PhpParser\Builder

Code

public abstract function addStmt($stmt);

API Navigation

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