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

namespace 
PhpParserNodeStmtTraitUseAdaptation;

use 
PhpParserNode;

class 
Precedence extends NodeStmtTraitUseAdaptation
{
    
/** @var NodeName[] Overwritten traits */
    
public $insteadof;

    
/**
     * Constructs a trait use precedence adaptation node.
     *
     * @param NodeName              $trait       Trait name
     * @param string|NodeIdentifier $method      Method name
     * @param NodeName[]            $insteadof   Overwritten traits
     * @param array                  $attributes  Additional attributes
     */
    
public function __construct(NodeName $trait$method, array $insteadof, array $attributes = []) {
        
$this->attributes $attributes;
        
$this->trait $trait;
        
$this->method is_string($method) ? new NodeIdentifier($method) : $method;
        
$this->insteadof $insteadof;
    }

    public function 
getSubNodeNames() : array {
        return [
'trait''method''insteadof'];
    }
    
    public function 
getType() : string {
        return 
'Stmt_TraitUseAdaptation_Precedence';
    }
}
Онлайн: 1
Реклама