StaticVar.php 740 B

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