1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-13 01:47:22 +01:00
PHP-Parser/lib/PHPParser/Node/Scalar/DNumber.php

23 lines
577 B
PHP
Raw Normal View History

2011-06-05 18:40:04 +02:00
<?php
/**
* @property double $value Number value
*/
class PHPParser_Node_Scalar_DNumber extends PHPParser_Node_Scalar
{
/**
* Constructs a float number scalar node.
*
2011-09-28 16:26:51 +02:00
* @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
);
}
2011-06-05 18:40:04 +02:00
}