mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 09:09:41 +01:00
29 lines
1.0 KiB
PHP
29 lines
1.0 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @property PHPParser_Node_Name $trait Trait name
|
|
* @property string $method Method name
|
|
* @property PHPParser_Node_Name[] $insteadof Overwritten traits
|
|
*/
|
|
class PHPParser_Node_Stmt_TraitUseAdaptation_Precedence extends PHPParser_Node_Stmt_TraitUseAdaptation
|
|
{
|
|
/**
|
|
* Constructs a trait use precedence adaptation node.
|
|
*
|
|
* @param PHPParser_Node_Name $trait Trait name
|
|
* @param string $method Method name
|
|
* @param PHPParser_Node_Name[] $insteadof Overwritten traits
|
|
* @param int $line Line
|
|
* @param null|string $docComment Nearest doc comment
|
|
*/
|
|
public function __construct(PHPParser_Node_Name $trait, $method, array $insteadof, $line = -1, $docComment = null) {
|
|
parent::__construct(
|
|
array(
|
|
'trait' => $trait,
|
|
'method' => $method,
|
|
'insteadof' => $insteadof,
|
|
),
|
|
$line, $docComment
|
|
);
|
|
}
|
|
} |