2011-10-30 12:03:29 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2012-08-02 17:01:33 +02:00
|
|
|
* @property PHPParser_Node_Name[] $traits Traits
|
|
|
|
* @property PHPParser_Node_Stmt_TraitUseAdaptation[] $adaptations Adaptations
|
2011-10-30 12:03:29 +01:00
|
|
|
*/
|
|
|
|
class PHPParser_Node_Stmt_TraitUse extends PHPParser_Node_Stmt
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Constructs a trait use node.
|
|
|
|
*
|
2012-08-02 17:01:33 +02:00
|
|
|
* @param PHPParser_Node_Name[] $traits Traits
|
|
|
|
* @param PHPParser_Node_Stmt_TraitUseAdaptation[] $adaptations Adaptations
|
|
|
|
* @param array $attributes Additional attributes
|
2011-10-30 12:03:29 +01:00
|
|
|
*/
|
2012-04-29 23:32:09 +02:00
|
|
|
public function __construct(array $traits, array $adaptations = array(), array $attributes = array()) {
|
2011-10-30 12:03:29 +01:00
|
|
|
parent::__construct(
|
|
|
|
array(
|
|
|
|
'traits' => $traits,
|
|
|
|
'adaptations' => $adaptations,
|
|
|
|
),
|
2012-04-29 23:32:09 +02:00
|
|
|
$attributes
|
2011-10-30 12:03:29 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|