1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-03 17:57:59 +01:00
PHP-Parser/lib/PhpParser/Node/Stmt/Do_.php

29 lines
666 B
PHP
Raw Normal View History

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