ElseIf.php 705 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * @property PHPParser_Node_Expr $cond Condition
  4. * @property PHPParser_Node[] $stmts Statements
  5. */
  6. class PHPParser_Node_Stmt_ElseIf extends PHPParser_Node_Stmt
  7. {
  8. /**
  9. * Constructs an elseif node.
  10. *
  11. * @param PHPParser_Node_Expr $cond Condition
  12. * @param PHPParser_Node[] $stmts Statements
  13. * @param array $attributes Additional attributes
  14. */
  15. public function __construct(PHPParser_Node_Expr $cond, array $stmts = array(), array $attributes = array()) {
  16. parent::__construct(
  17. array(
  18. 'cond' => $cond,
  19. 'stmts' => $stmts,
  20. ),
  21. $attributes
  22. );
  23. }
  24. }