first commit -> move some files from one-api
This commit is contained in:
30
vendor/aws_sdk/Aws/DynamoDb/NumberValue.php
vendored
Normal file
30
vendor/aws_sdk/Aws/DynamoDb/NumberValue.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user