2011-06-05 18:40:04 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2011-09-23 18:45:29 +02:00
|
|
|
* @property PHPParser_Node[] $stmts Statements
|
|
|
|
* @property null|PHPParser_Node_Expr $cond Condition (null for default)
|
2011-06-05 18:40:04 +02:00
|
|
|
*/
|
|
|
|
class PHPParser_Node_Stmt_Case extends PHPParser_Node_Stmt
|
|
|
|
{
|
2011-09-23 18:45:29 +02:00
|
|
|
/**
|
|
|
|
* Constructs a case node.
|
|
|
|
*
|
|
|
|
* @param PHPParser_Node[] $stmts Statements
|
|
|
|
* @param null|PHPParser_Node_Expr $cond Condition (null for default)
|
|
|
|
* @param int $line Line
|
|
|
|
* @param null|string $docComment Nearest doc comment
|
|
|
|
*/
|
|
|
|
public function __construct(array $stmts, PHPParser_Node_Expr $cond = null, $line = -1, $docComment = null) {
|
|
|
|
parent::__construct(
|
|
|
|
array(
|
|
|
|
'stmts' => $stmts,
|
|
|
|
'cond' => $cond,
|
|
|
|
),
|
|
|
|
$line, $docComment
|
|
|
|
);
|
|
|
|
}
|
2011-06-05 18:40:04 +02:00
|
|
|
}
|