PHP Class PhpParser\Node\Stmt\Catch_

Inheritance: extends PhpParser\Node\Stmt
Show file Open project: nikic/php-parser

Public Properties

Property Type Description
$stmts Statements
$types Types of exceptions to catch
$var Variable for exception

Public Methods

Method Description
__construct ( array $types, string $var, array $stmts = [], array $attributes = [] ) Constructs a catch node.
getSubNodeNames ( )

Method Details

__construct() public method

Constructs a catch node.
public __construct ( array $types, string $var, array $stmts = [], array $attributes = [] )
$types array Types of exceptions to catch
$var string Variable for exception
$stmts array Statements
$attributes array Additional attributes

getSubNodeNames() public method

public getSubNodeNames ( )

Property Details

$stmts public property

Statements
public $stmts

$types public property

Types of exceptions to catch
public $types

$var public property

Variable for exception
public $var