client->getCommand('GetItem', array( 'TableName' => $this->config->get('table_name'), 'Key' => $this->formatKey($id), 'ConsistentRead' => (bool) $this->config->get('consistent_read'), Ua::OPTION => Ua::SESSION ))->execute(); // Get the item values $item = array(); $result = isset($result['Item']) ? $result['Item'] : array(); foreach ($result as $key => $value) { $item[$key] = current($value); } } catch (DynamoDbException $e) { $item = array(); } return $item; } /** * {@inheritdoc} */ protected function getExtraAttributes() { // @codeCoverageIgnoreStart return array(); // @codeCoverageIgnoreEnd } }