Precedence.php 986 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @property PHPParser_Node_Name $trait Trait name
  4. * @property string $method Method name
  5. * @property PHPParser_Node_Name[] $insteadof Overwritten traits
  6. */
  7. class PHPParser_Node_Stmt_TraitUseAdaptation_Precedence extends PHPParser_Node_Stmt_TraitUseAdaptation
  8. {
  9. /**
  10. * Constructs a trait use precedence adaptation node.
  11. *
  12. * @param PHPParser_Node_Name $trait Trait name
  13. * @param string $method Method name
  14. * @param PHPParser_Node_Name[] $insteadof Overwritten traits
  15. * @param array $attributes Additional attributes
  16. */
  17. public function __construct(PHPParser_Node_Name $trait, $method, array $insteadof, array $attributes = array()) {
  18. parent::__construct(
  19. array(
  20. 'trait' => $trait,
  21. 'method' => $method,
  22. 'insteadof' => $insteadof,
  23. ),
  24. $attributes
  25. );
  26. }
  27. }