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

namespace 
PhpParserNodeStmt;

use 
PhpParserNode;

class 
Break_ extends NodeStmt
{
    
/** @var null|NodeExpr Number of loops to break */
    
public $num;

    
/**
     * Constructs a break node.
     *
     * @param null|NodeExpr $num        Number of loops to break
     * @param array          $attributes Additional attributes
     */
    
public function __construct(NodeExpr $num null, array $attributes = []) {
        
$this->attributes $attributes;
        
$this->num $num;
    }

    public function 
getSubNodeNames() : array {
        return [
'num'];
    }
    
    public function 
getType() : string {
        return 
'Stmt_Break';
    }
}
Онлайн: 0
Реклама