php-parser/lib/PhpParser/Node/Stmt/Expression.php
2016-12-24 23:54:24 +01:00

30 lines
609 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() {
return array('expr');
}
}