class Do_
Hierarchy
- class \PhpParser\Node\Stmt\Do_ extends \Node\Stmt
Expanded class hierarchy of Do_
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ Do_.php, line 7
Namespace
PhpParser\Node\StmtView source
class Do_ extends Node\Stmt {
/** @var Node\Stmt[] Statements */
public array $stmts;
/** @var Node\Expr Condition */
public Node\Expr $cond;
/**
* Constructs a do while node.
*
* @param Node\Expr $cond Condition
* @param Node\Stmt[] $stmts Statements
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(Node\Expr $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';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Do_::$cond | public | property | @var Node\Expr Condition |
Do_::$stmts | public | property | @var Node\Stmt[] Statements |
Do_::getSubNodeNames | public | function | |
Do_::getType | public | function | |
Do_::__construct | public | function | Constructs a do while node. |