class While_
Hierarchy
- class \PhpParser\Node\Stmt\While_ extends \Node\Stmt
Expanded class hierarchy of While_
1 file declares its use of While_
- CyclomaticComplexityCalculatingVisitor.php in vendor/
sebastian/ complexity/ src/ Visitor/ CyclomaticComplexityCalculatingVisitor.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Stmt/ While_.php, line 7
Namespace
PhpParser\Node\StmtView source
class While_ extends Node\Stmt {
/** @var Node\Expr Condition */
public Node\Expr $cond;
/** @var Node\Stmt[] Statements */
public array $stmts;
/**
* Constructs a 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 [
'cond',
'stmts',
];
}
public function getType() : string {
return 'Stmt_While';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
While_::$cond | public | property | @var Node\Expr Condition |
While_::$stmts | public | property | @var Node\Stmt[] Statements |
While_::getSubNodeNames | public | function | |
While_::getType | public | function | |
While_::__construct | public | function | Constructs a while node. |