菜谱项目

Throw_.php 545B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace PhpParser\Node\Stmt;
  3. use PhpParser\Node;
  4. class Throw_ extends Node\Stmt
  5. {
  6. /** @var Node\Expr Expression */
  7. public $expr;
  8. /**
  9. * Constructs a throw node.
  10. *
  11. * @param Node\Expr $expr Expression
  12. * @param array $attributes Additional attributes
  13. */
  14. public function __construct(Node\Expr $expr, array $attributes = array()) {
  15. parent::__construct($attributes);
  16. $this->expr = $expr;
  17. }
  18. public function getSubNodeNames() {
  19. return array('expr');
  20. }
  21. }