Total Complexity | 8 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class DynamoDbManager |
||
14 | { |
||
15 | /** |
||
16 | * @var DynamoDbClientInterface |
||
17 | */ |
||
18 | private $service; |
||
19 | |||
20 | /** |
||
21 | * @var Marshaler |
||
22 | */ |
||
23 | public $marshaler; |
||
24 | |||
25 | 129 | public function __construct(DynamoDbClientInterface $service) |
|
26 | { |
||
27 | 129 | $this->service = $service; |
|
28 | 129 | $this->marshaler = $service->getMarshaler(); |
|
29 | 129 | } |
|
30 | |||
31 | 16 | public function marshalItem($item) |
|
32 | { |
||
33 | 16 | return $this->marshaler->marshalItem($item); |
|
34 | } |
||
35 | |||
36 | 39 | public function marshalValue($value) |
|
37 | { |
||
38 | 39 | return $this->marshaler->marshalValue($value); |
|
39 | } |
||
40 | |||
41 | 102 | public function unmarshalItem($item) |
|
42 | { |
||
43 | 102 | return $this->marshaler->unmarshalItem($item); |
|
44 | } |
||
45 | |||
46 | 1 | public function unmarshalValue($value) |
|
47 | { |
||
48 | 1 | return $this->marshaler->unmarshalValue($value); |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * @param string|null $connection |
||
53 | * @return \Aws\DynamoDb\DynamoDbClient |
||
54 | */ |
||
55 | 2 | public function client($connection = null) |
|
56 | { |
||
57 | 2 | return $this->service->getClient($connection); |
|
58 | } |
||
59 | |||
60 | /** |
||
61 | * @return QueryBuilder |
||
62 | */ |
||
63 | 123 | public function newQuery() |
|
66 | } |
||
67 | |||
68 | /** |
||
69 | * @param string $table |
||
70 | * @return QueryBuilder |
||
71 | */ |
||
72 | 117 | public function table($table) |
|
75 | } |
||
76 | } |
||
77 |