Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
namespace Aws\DynamoDb;
3
 
4
/**
5
 * Special object to represent a DynamoDB Number (N) value.
6
 */
7
class NumberValue implements \JsonSerializable
8
{
9
    /** @var string Number value. */
10
    private $value;
11
 
12
    /**
13
     * @param string|int|float $value A number value.
14
     */
15
    public function __construct($value)
16
    {
17
        $this->value = (string) $value;
18
    }
19
 
20
    #[\ReturnTypeWillChange]
21
    public function jsonSerialize()
22
    {
23
        return $this->value;
24
    }
25
 
26
    public function __toString()
27
    {
28
        return $this->value;
29
    }
30
}