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

Breadcrumb

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

function PropertyHook::getStmts

Overrides FunctionLike::getStmts

File

vendor/nikic/php-parser/lib/PhpParser/Node/PropertyHook.php, line 60

Class

PropertyHook

Namespace

PhpParser\Node

Code

public function getStmts() : ?array {
    if ($this->body instanceof Expr) {
        return [
            new Return_($this->body),
        ];
    }
    return $this->body;
}

API Navigation

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