mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-14 02:17:31 +01:00
126efbc056
Make $stmts and $subNodes optional in most places
23 lines
581 B
PHP
23 lines
581 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 = array(), $line = -1, $docComment = null) {
|
|
parent::__construct(
|
|
array(
|
|
'stmts' => $stmts,
|
|
),
|
|
$line, $docComment
|
|
);
|
|
}
|
|
} |