TraitUse.php 839 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @property PHPParser_Node_Name[] $traits Traits
  4. * @property PHPParser_Node_Stmt_TraitUseAdaptation[] $adaptations Adaptations
  5. */
  6. class PHPParser_Node_Stmt_TraitUse extends PHPParser_Node_Stmt
  7. {
  8. /**
  9. * Constructs a trait use node.
  10. *
  11. * @param PHPParser_Node_Name[] $traits Traits
  12. * @param PHPParser_Node_Stmt_TraitUseAdaptation[] $adaptations Adaptations
  13. * @param array $attributes Additional attributes
  14. */
  15. public function __construct(array $traits, array $adaptations = array(), array $attributes = array()) {
  16. parent::__construct(
  17. array(
  18. 'traits' => $traits,
  19. 'adaptations' => $adaptations,
  20. ),
  21. $attributes
  22. );
  23. }
  24. }