php-parser/lib/PHPParser/Node/Stmt/DeclareDeclare.php
2011-10-21 16:51:37 +02:00

26 lines
748 B
PHP

<?php
/**
* @property string $key Key
* @property PHPParser_Node_Expr $value Value
*/
class PHPParser_Node_Stmt_DeclareDeclare extends PHPParser_Node_Stmt
{
/**
* Constructs a declare key=>value pair node.
*
* @param string $key Key
* @param PHPParser_Node_Expr $value Value
* @param int $line Line
* @param null|string $docComment Nearest doc comment
*/
public function __construct($key, PHPParser_Node_Expr $value, $line = -1, $docComment = null) {
parent::__construct(
array(
'key' => $key,
'value' => $value,
),
$line, $docComment
);
}
}