mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 09:09:41 +01:00
9d8e13b4a9
Not that it makes much of a difference, but could have caused issues with "out of order" visiting of nodes.
25 lines
743 B
PHP
25 lines
743 B
PHP
<?php
|
|
|
|
/**
|
|
* @property null|PHPParser_Node_Expr $cond Condition (null for default)
|
|
* @property PHPParser_Node[] $stmts Statements
|
|
*/
|
|
class PHPParser_Node_Stmt_Case extends PHPParser_Node_Stmt
|
|
{
|
|
/**
|
|
* Constructs a case node.
|
|
*
|
|
* @param null|PHPParser_Node_Expr $cond Condition (null for default)
|
|
* @param PHPParser_Node[] $stmts Statements
|
|
* @param array $attributes Additional attributes
|
|
*/
|
|
public function __construct($cond, array $stmts = array(), array $attributes = array()) {
|
|
parent::__construct(
|
|
array(
|
|
'cond' => $cond,
|
|
'stmts' => $stmts,
|
|
),
|
|
$attributes
|
|
);
|
|
}
|
|
} |