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