1 <?php declare(strict_types=1);
3 namespace PhpParser\Node\Stmt;
8 * Represents statements of type "expr;"
10 class Expression extends Node\Stmt
12 /** @var Node\Expr Expression */
16 * Constructs an expression statement.
18 * @param Node\Expr $expr Expression
19 * @param array $attributes Additional attributes
21 public function __construct(Node\Expr $expr, array $attributes = []) {
22 parent::__construct($attributes);
26 public function getSubNodeNames() : array {
30 public function getType() : string {
31 return 'Stmt_Expression';