/lib/PHPParser/Node/Expr/Exit.php

https://bitbucket.org/nilopc_repo/sf2_backup-php-parser · PHP · 22 lines · 12 code · 1 blank · 9 comment · 0 complexity · f3eda0dd76875f7efe11695e432e3db4 MD5 · raw file

  1. <?php
  2. /**
  3. * @property null|PHPParser_Node_Expr $expr Expression
  4. */
  5. class PHPParser_Node_Expr_Exit extends PHPParser_Node_Expr
  6. {
  7. /**
  8. * Constructs an exit() node.
  9. *
  10. * @param null|PHPParser_Node_Expr $expr Expression
  11. * @param array $attributes Additional attributes
  12. */
  13. public function __construct(PHPParser_Node_Expr $expr = null, array $attributes = array()) {
  14. parent::__construct(
  15. array(
  16. 'expr' => $expr
  17. ),
  18. $attributes
  19. );
  20. }
  21. }