php-parser/lib/PhpParser/Node/Stmt/Catch_.php
2014-04-02 09:44:45 +02:00

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
);
}
}