Files
Testing/include/aws/Aws/DynamoDb/NumberValue.php

31 lines
552 B
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?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;
}
}