mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 12:37:14 +01:00
30 lines
523 B
PHP
30 lines
523 B
PHP
<?php
|
|
namespace Aws\DynamoDb;
|
|
|
|
/**
|
|
* Special object to represent a DynamoDB Number (N) value.
|
|
*/
|
|
class NumberValue implements \JsonSerializable
|
|
{
|
|
/** @var string Number value. */
|
|
private $value;
|
|
|
|
/**
|
|
* @param string|int|float $value A number value.
|
|
*/
|
|
public function __construct($value)
|
|
{
|
|
$this->value = (string) $value;
|
|
}
|
|
|
|
public function jsonSerialize()
|
|
{
|
|
return $this->value;
|
|
}
|
|
|
|
public function __toString()
|
|
{
|
|
return $this->value;
|
|
}
|
|
}
|