PHP Classes
elePHPant
Icontem

File: application/modules/extensions/aws/Aws/DynamoDb/NumberValue.php

Recommend this page to a friend!
  Classes of Tran Tuan  >  Pretty PHP S3 Files Manager  >  application/modules/extensions/aws/Aws/DynamoDb/NumberValue.php  >  Download  
File: application/modules/extensions/aws/Aws/DynamoDb/NumberValue.php
Role: Application script
Content type: text/plain
Description: Application script
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 3 years ago
Size: 523 bytes
 

 

Contents

Class file image Download
<?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;
    }
}