php-parser/lib/PHPParser/Node/Stmt/Case.php

26 lines
823 B
PHP
Raw Normal View History

2011-06-05 18:40:04 +02:00
<?php
/**
* @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
{
/**
* 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
}