mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-11 16:49:43 +01:00
29 lines
666 B
PHP
29 lines
666 B
PHP
<?php
|
|
|
|
namespace PhpParser\Node\Stmt;
|
|
|
|
use PhpParser\Node;
|
|
|
|
/**
|
|
* @property Node\Expr $cond Condition
|
|
* @property Node[] $stmts Statements
|
|
*/
|
|
class While_ extends Node\Stmt
|
|
{
|
|
/**
|
|
* Constructs a while node.
|
|
*
|
|
* @param Node\Expr $cond Condition
|
|
* @param Node[] $stmts Statements
|
|
* @param array $attributes Additional attributes
|
|
*/
|
|
public function __construct(Node\Expr $cond, array $stmts = array(), array $attributes = array()) {
|
|
parent::__construct(
|
|
array(
|
|
'cond' => $cond,
|
|
'stmts' => $stmts,
|
|
),
|
|
$attributes
|
|
);
|
|
}
|
|
} |