| Total Complexity | 8 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| 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 | public function __construct(DynamoDbClientInterface $service) |
||
| 26 | { |
||
| 27 | $this->service = $service; |
||
| 28 | $this->marshaler = $service->getMarshaler(); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function marshalItem($item) |
||
| 32 | { |
||
| 33 | return $this->marshaler->marshalItem($item); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function marshalValue($value) |
||
| 37 | { |
||
| 38 | return $this->marshaler->marshalValue($value); |
||
| 39 | } |
||
| 40 | |||
| 41 | public function unmarshalItem($item) |
||
| 42 | { |
||
| 43 | return $this->marshaler->unmarshalItem($item); |
||
| 44 | } |
||
| 45 | |||
| 46 | public function unmarshalValue($value) |
||
| 47 | { |
||
| 48 | return $this->marshaler->unmarshalValue($value); |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string|null $connection |
||
| 53 | * @return \Aws\DynamoDb\DynamoDbClient |
||
| 54 | */ |
||
| 55 | public function client($connection = null) |
||
| 56 | { |
||
| 57 | return $this->service->getClient($connection); |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return QueryBuilder |
||
| 62 | */ |
||
| 63 | public function newQuery() |
||
| 66 | } |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param string $table |
||
| 70 | * @return QueryBuilder |
||
| 71 | */ |
||
| 72 | public function table($table) |
||
| 75 | } |
||
| 76 | } |
||
| 77 |