ClassConstFetch.php 795 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @property PHPParser_Node_Name|PHPParser_Node_Expr $class Class name
  4. * @property string $name Constant name
  5. */
  6. class PHPParser_Node_Expr_ClassConstFetch extends PHPParser_Node_Expr
  7. {
  8. /**
  9. * Constructs a class const fetch node.
  10. *
  11. * @param PHPParser_Node_Name|PHPParser_Node_Expr $class Class name
  12. * @param string $name Constant name
  13. * @param array $attributes Additional attributes
  14. */
  15. public function __construct($class, $name, array $attributes = array()) {
  16. parent::__construct(
  17. array(
  18. 'class' => $class,
  19. 'name' => $name
  20. ),
  21. $attributes
  22. );
  23. }
  24. }