1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-12 17:37:21 +01:00
PHP-Parser/lib/PHPParser/Node/Scalar/DNumber.php
2011-09-28 16:26:51 +02:00

23 lines
577 B
PHP

<?php
/**
* @property double $value Number value
*/
class PHPParser_Node_Scalar_DNumber extends PHPParser_Node_Scalar
{
/**
* Constructs a float number scalar node.
*
* @param float $value Value of the number
* @param int $line Line
* @param null|string $docComment Nearest doc comment
*/
public function __construct($value = 0.0, $line = -1, $docComment = null) {
parent::__construct(
array(
'value' => $value
),
$line, $docComment
);
}
}