mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-02 17:38:19 +01:00
30 lines
617 B
PHP
30 lines
617 B
PHP
<?php
|
|
|
|
namespace PhpParser\Node\Stmt;
|
|
|
|
use PhpParser\Node;
|
|
|
|
/**
|
|
* Represents statements of type "expr;"
|
|
*/
|
|
class Expression extends Node\Stmt
|
|
{
|
|
/** @var Node\Expr Expression */
|
|
public $expr;
|
|
|
|
/**
|
|
* Constructs an expression statement.
|
|
*
|
|
* @param Node\Expr $expr Expression
|
|
* @param array $attributes Additional attributes
|
|
*/
|
|
public function __construct(Node\Expr $expr, array $attributes = array()) {
|
|
parent::__construct($attributes);
|
|
$this->expr = $expr;
|
|
}
|
|
|
|
public function getSubNodeNames() : array {
|
|
return array('expr');
|
|
}
|
|
}
|