mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-04 02:17:56 +01:00
f202aa9814
For nodes that accept many optional arguments I chose to keep the $subNodes argument, but provide default values instead.
23 lines
571 B
PHP
23 lines
571 B
PHP
<?php
|
|
|
|
/**
|
|
* @property PHPParser_Node[] $stmts Statements
|
|
*/
|
|
class PHPParser_Node_Stmt_Else extends PHPParser_Node_Stmt
|
|
{
|
|
/**
|
|
* Constructs an else node.
|
|
*
|
|
* @param PHPParser_Node[] $stmts Statements
|
|
* @param int $line Line
|
|
* @param null|string $docComment Nearest doc comment
|
|
*/
|
|
public function __construct(array $stmts, $line = -1, $docComment = null) {
|
|
parent::__construct(
|
|
array(
|
|
'stmts' => $stmts,
|
|
),
|
|
$line, $docComment
|
|
);
|
|
}
|
|
} |