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

namespace 
PhpParserNodeStmt;

use 
PhpParserNode;

class 
Namespace_ extends NodeStmt
{
    
/* For use in the "kind" attribute */
    
const KIND_SEMICOLON 1;
    const 
KIND_BRACED 2;

    
/** @var null|NodeName Name */
    
public $name;
    
/** @var NodeStmt[] Statements */
    
public $stmts;

    
/**
     * Constructs a namespace node.
     *
     * @param null|NodeName   $name       Name
     * @param null|NodeStmt[] $stmts      Statements
     * @param array            $attributes Additional attributes
     */
    
public function __construct(NodeName $name null$stmts = [], array $attributes = []) {
        
$this->attributes $attributes;
        
$this->name $name;
        
$this->stmts $stmts;
    }

    public function 
getSubNodeNames() : array {
        return [
'name''stmts'];
    }
    
    public function 
getType() : string {
        return 
'Stmt_Namespace';
    }
}
Онлайн: 1
Реклама