No Description

Const_.php 674B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace PhpParser\Node;
  3. use PhpParser\NodeAbstract;
  4. /**
  5. * @property string $name Name
  6. * @property Expr $value Value
  7. */
  8. class Const_ extends NodeAbstract
  9. {
  10. /**
  11. * Constructs a const node for use in class const and const statements.
  12. *
  13. * @param string $name Name
  14. * @param Expr $value Value
  15. * @param array $attributes Additional attributes
  16. */
  17. public function __construct($name, Expr $value, array $attributes = array()) {
  18. parent::__construct(
  19. array(
  20. 'name' => $name,
  21. 'value' => $value,
  22. ),
  23. $attributes
  24. );
  25. }
  26. }