Файл: vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php
Строк: 28
<?php declare(strict_types=1);
namespace PhpParserNodeStmt;
use PhpParserNode;
class Do_ extends NodeStmt
{
/** @var NodeStmt[] Statements */
public $stmts;
/** @var NodeExpr Condition */
public $cond;
/**
* Constructs a do while node.
*
* @param NodeExpr $cond Condition
* @param NodeStmt[] $stmts Statements
* @param array $attributes Additional attributes
*/
public function __construct(NodeExpr $cond, array $stmts = [], array $attributes = []) {
$this->attributes = $attributes;
$this->cond = $cond;
$this->stmts = $stmts;
}
public function getSubNodeNames() : array {
return ['stmts', 'cond'];
}
public function getType() : string {
return 'Stmt_Do';
}
}