1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-27 04:14:44 +01:00
PHP-Parser/lib/PhpParser/Node/Stmt/Do.php

29 lines
666 B
PHP

<?php
namespace PhpParser\Node\Stmt;
use PhpParser\Node;
/**
* @property Node\Expr $cond Condition
* @property Node[] $stmts Statements
*/
class Do_ extends Node\Stmt
{
/**
* Constructs a do 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
);
}
}