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