Alias.php 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @property null|PHPParser_Node_Name $trait Trait name
  4. * @property string $method Method name
  5. * @property null|int $newModifier New modifier
  6. * @property null|string $newName New name
  7. */
  8. class PHPParser_Node_Stmt_TraitUseAdaptation_Alias extends PHPParser_Node_Stmt_TraitUseAdaptation
  9. {
  10. /**
  11. * Constructs a trait use precedence adaptation node.
  12. *
  13. * @param null|PHPParser_Node_Name $trait Trait name
  14. * @param string $method Method name
  15. * @param null|int $newModifier New modifier
  16. * @param null|string $newName New name
  17. * @param array $attributes Additional attributes
  18. */
  19. public function __construct($trait, $method, $newModifier, $newName, array $attributes = array()) {
  20. parent::__construct(
  21. array(
  22. 'trait' => $trait,
  23. 'method' => $method,
  24. 'newModifier' => $newModifier,
  25. 'newName' => $newName,
  26. ),
  27. $attributes
  28. );
  29. }
  30. }