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