1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-12 09:29:47 +01:00
PHP-Parser/lib/PhpParser/Node/Stmt/TraitUse.php

29 lines
762 B
PHP
Raw Normal View History

<?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
);
}
}