1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-11 00:49:40 +01:00
PHP-Parser/lib/PhpParser/Node/Stmt/Switch_.php

29 lines
654 B
PHP
Raw Normal View History

<?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
);
}
}