1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-11 08:59:46 +01:00
PHP-Parser/lib/PhpParser/Node/Stmt/Switch_.php
2014-04-02 09:44:45 +02:00

29 lines
654 B
PHP

<?php
namespace PhpParser\Node\Stmt;
use PhpParser\Node;
/**
* @property Node\Expr $cond Condition
* @property Case_[] $cases Case list
*/
class Switch_ extends Node\Stmt
{
/**
* Constructs a case node.
*
* @param Node\Expr $cond Condition
* @param Case_[] $cases Case list
* @param array $attributes Additional attributes
*/
public function __construct(Node\Expr $cond, array $cases, array $attributes = array()) {
parent::__construct(
array(
'cond' => $cond,
'cases' => $cases,
),
$attributes
);
}
}