1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-14 02:17:31 +01:00
PHP-Parser/lib/PHPParser/Node/Stmt/Else.php
nikic 126efbc056 Make more things optional
Make $stmts and $subNodes optional in most places
2011-10-28 19:14:06 +02:00

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
);
}
}