No Description

StaticVar.php 703B

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