| 1 | <?php |
||
| 5 | class ScalarValue implements ValueInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var float |
||
| 9 | */ |
||
| 10 | protected $value; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param float $value |
||
| 14 | */ |
||
| 15 | 4 | public function __construct($value) |
|
| 19 | |||
| 20 | /** |
||
| 21 | * @return float |
||
| 22 | */ |
||
| 23 | 4 | public function getValue() |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @inheritdoc |
||
| 30 | */ |
||
| 31 | public function scalar(ValueInterface $value) |
||
| 35 | |||
| 36 | |||
| 37 | } |
||
| 38 |