Files
faveo/vendor/aws/aws-sdk-php/src/DynamoDb/NumberValue.php
RafficMohammed da241bacb6 updated-packages
2023-01-08 00:13:22 +05:30

31 lines
552 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;
}
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->value;
}
public function __toString()
{
return $this->value;
}
}