mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-04 18:38:05 +01:00
32 lines
1.2 KiB
PHP
32 lines
1.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @property null|PHPParser_Node_Name $trait Trait name
|
|
* @property string $method Method name
|
|
* @property null|int $newModifier New modifier
|
|
* @property null|string $newName New name
|
|
*/
|
|
class PHPParser_Node_Stmt_TraitUseAdaptation_Alias extends PHPParser_Node_Stmt_TraitUseAdaptation
|
|
{
|
|
/**
|
|
* Constructs a trait use precedence adaptation node.
|
|
*
|
|
* @param null|PHPParser_Node_Name $trait Trait name
|
|
* @param string $method Method name
|
|
* @param null|int $newModifier New modifier
|
|
* @param null|string $newName New name
|
|
* @param int $line Line
|
|
* @param null|string $docComment Nearest doc comment
|
|
*/
|
|
public function __construct($trait, $method, $newModifier, $newName, $line = -1, $docComment = null) {
|
|
parent::__construct(
|
|
array(
|
|
'trait' => $trait,
|
|
'method' => $method,
|
|
'newModifier' => $newModifier,
|
|
'newName' => $newName,
|
|
),
|
|
$line, $docComment
|
|
);
|
|
}
|
|
} |