mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-04 10:28:18 +01:00
29 lines
762 B
PHP
29 lines
762 B
PHP
|
<?php
|
||
|
|
||
|
namespace PhpParser\Node\Stmt;
|
||
|
|
||
|
use PhpParser\Node;
|
||
|
|
||
|
/**
|
||
|
* @property Node\Name[] $traits Traits
|
||
|
* @property TraitUseAdaptation[] $adaptations Adaptations
|
||
|
*/
|
||
|
class TraitUse extends Node\Stmt
|
||
|
{
|
||
|
/**
|
||
|
* Constructs a trait use node.
|
||
|
*
|
||
|
* @param Node\Name[] $traits Traits
|
||
|
* @param TraitUseAdaptation[] $adaptations Adaptations
|
||
|
* @param array $attributes Additional attributes
|
||
|
*/
|
||
|
public function __construct(array $traits, array $adaptations = array(), array $attributes = array()) {
|
||
|
parent::__construct(
|
||
|
array(
|
||
|
'traits' => $traits,
|
||
|
'adaptations' => $adaptations,
|
||
|
),
|
||
|
$attributes
|
||
|
);
|
||
|
}
|
||
|
}
|