Вход Регистрация
Файл: vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Catch_.php
Строк: 25
<?php declare(strict_types=1);

namespace 
PhpParserNodeStmt;

use 
PhpParserNode;
use 
PhpParserNodeExpr;

class 
Catch_ extends NodeStmt
{
    
/** @var NodeName[] Types of exceptions to catch */
    
public $types;
    
/** @var ExprVariable|null Variable for exception */
    
public $var;
    
/** @var NodeStmt[] Statements */
    
public $stmts;

    
/**
     * Constructs a catch node.
     *
     * @param NodeName[]           $types      Types of exceptions to catch
     * @param ExprVariable|null    $var        Variable for exception
     * @param NodeStmt[]           $stmts      Statements
     * @param array                 $attributes Additional attributes
     */
    
public function __construct(
        array 
$typesExprVariable $var null, array $stmts = [], array $attributes = []
    ) {
        
$this->attributes $attributes;
        
$this->types $types;
        
$this->var $var;
        
$this->stmts $stmts;
    }

    public function 
getSubNodeNames() : array {
        return [
'types''var''stmts'];
    }

    public function 
getType() : string {
        return 
'Stmt_Catch';
    }
}
Онлайн: 0
Реклама