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

namespace 
PhpParserNodeStmt;

use 
PhpParserNode;

class 
DeclareDeclare extends NodeStmt
{
    
/** @var NodeIdentifier Key */
    
public $key;
    
/** @var NodeExpr Value */
    
public $value;

    
/**
     * Constructs a declare key=>value pair node.
     *
     * @param string|NodeIdentifier $key        Key
     * @param NodeExpr              $value      Value
     * @param array                  $attributes Additional attributes
     */
    
public function __construct($keyNodeExpr $value, array $attributes = []) {
        
$this->attributes $attributes;
        
$this->key is_string($key) ? new NodeIdentifier($key) : $key;
        
$this->value $value;
    }

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