mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 17:17:31 +01:00
26 lines
519 B
PHP
26 lines
519 B
PHP
<?php
|
|
|
|
namespace PhpParser\Node\Stmt;
|
|
|
|
use PhpParser\Node;
|
|
|
|
/**
|
|
* @property Node\Expr $expr Expression
|
|
*/
|
|
class Throw_ extends Node\Stmt
|
|
{
|
|
/**
|
|
* Constructs a throw node.
|
|
*
|
|
* @param Node\Expr $expr Expression
|
|
* @param array $attributes Additional attributes
|
|
*/
|
|
public function __construct(Node\Expr $expr, array $attributes = array()) {
|
|
parent::__construct(
|
|
array(
|
|
'expr' => $expr,
|
|
),
|
|
$attributes
|
|
);
|
|
}
|
|
} |