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

25 lines
743 B
PHP
Raw Normal View History

2011-06-05 18:40:04 +02:00
<?php
/**
2011-09-28 16:26:51 +02:00
* @property null|PHPParser_Node_Expr $cond Condition (null for default)
* @property PHPParser_Node[] $stmts Statements
2011-06-05 18:40:04 +02:00
*/
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
);
}
2011-06-05 18:40:04 +02:00
}