mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-16 21:18:00 +00:00
S3/Minio storage controller Support
This commit is contained in:
29
storage-controllers/s3/Aws/DynamoDb/NumberValue.php
Normal file
29
storage-controllers/s3/Aws/DynamoDb/NumberValue.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user