2011-10-30 12:03:29 +01:00
|
|
|
<?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
|
2012-04-29 23:32:09 +02:00
|
|
|
* @param array $attributes Additional attributes
|
2011-10-30 12:03:29 +01:00
|
|
|
*/
|
2012-04-29 23:32:09 +02:00
|
|
|
public function __construct($trait, $method, $newModifier, $newName, array $attributes = array()) {
|
2011-10-30 12:03:29 +01:00
|
|
|
parent::__construct(
|
|
|
|
array(
|
|
|
|
'trait' => $trait,
|
|
|
|
'method' => $method,
|
|
|
|
'newModifier' => $newModifier,
|
|
|
|
'newName' => $newName,
|
|
|
|
),
|
2012-04-29 23:32:09 +02:00
|
|
|
$attributes
|
2011-10-30 12:03:29 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|