/** * Get a specific DynamoDb key. * * @param DynamoDbModel $model The DynamoDb model. * @param string $keyName The key name. * @param string $value The key value. * * @return array The DynamoDb key, keyName => value. */ protected static function getSpecificDynamoDbKey(DynamoDbModel $model, $keyName, $value) { $idKey = $model->marshalItem([$keyName => $value]); return [$keyName => $idKey[$keyName]]; }
/** * @inheritdoc */ public function toArray() { $attributes = parent::toArray(); $attributes['url'] = $this->getUrl(); return $attributes; }