mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-11 16:49:43 +01:00
32 lines
835 B
PHP
32 lines
835 B
PHP
<?php
|
|
|
|
namespace PhpParser\Node\Stmt;
|
|
|
|
use PhpParser\Node;
|
|
|
|
/**
|
|
* @property Node\Name $type Class of exception
|
|
* @property string $var Variable for exception
|
|
* @property Node[] $stmts Statements
|
|
*/
|
|
class Catch_ extends Node\Stmt
|
|
{
|
|
/**
|
|
* Constructs a catch node.
|
|
*
|
|
* @param Node\Name $type Class of exception
|
|
* @param string $var Variable for exception
|
|
* @param Node[] $stmts Statements
|
|
* @param array $attributes Additional attributes
|
|
*/
|
|
public function __construct(Node\Name $type, $var, array $stmts = array(), array $attributes = array()) {
|
|
parent::__construct(
|
|
array(
|
|
'type' => $type,
|
|
'var' => $var,
|
|
'stmts' => $stmts,
|
|
),
|
|
$attributes
|
|
);
|
|
}
|
|
} |