PluginProbe ʕ •ᴥ•ʔ
Transferito: WP Migration / trunk
Transferito: WP Migration vtrunk
trunk 11.4.0 12.0.0 13.1.0 14.0.0 14.0.11 14.0.7 14.1.0 14.1.1 14.1.2 14.1.3 14.1.4
transferito / vendor / aws / aws-sdk-php / src / DynamoDb / SetValue.php
transferito / vendor / aws / aws-sdk-php / src / DynamoDb Last commit date
Exception 11 months ago BinaryValue.php 11 months ago DynamoDbClient.php 11 months ago LockingSessionConnection.php 11 months ago Marshaler.php 11 months ago NumberValue.php 11 months ago SessionConnectionConfigTrait.php 11 months ago SessionConnectionInterface.php 11 months ago SessionHandler.php 11 months ago SetValue.php 11 months ago StandardSessionConnection.php 11 months ago WriteRequestBatch.php 11 months ago
SetValue.php
51 lines
1 <?php
2 namespace Aws\DynamoDb;
3
4 /**
5 * Special object to represent a DynamoDB set (SS/NS/BS) value.
6 */
7 class SetValue implements \JsonSerializable, \Countable, \IteratorAggregate
8 {
9 /** @var array Values in the set as provided. */
10 private $values;
11
12 /**
13 * @param array $values Values in the set.
14 */
15 public function __construct(array $values)
16 {
17 $this->values = $values;
18 }
19
20 /**
21 * Get the values formatted for PHP and JSON.
22 *
23 * @return array
24 */
25 public function toArray()
26 {
27 return $this->values;
28 }
29
30 /**
31 * @return int
32 */
33 #[\ReturnTypeWillChange]
34 public function count()
35 {
36 return count($this->values);
37 }
38
39 #[\ReturnTypeWillChange]
40 public function getIterator()
41 {
42 return new \ArrayIterator($this->values);
43 }
44
45 #[\ReturnTypeWillChange]
46 public function jsonSerialize()
47 {
48 return $this->toArray();
49 }
50 }
51