Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait ReturnConsumedCapacityAwareOperationTrait |
||
8 | { |
||
9 | /** |
||
10 | * @var string The level of detail about provisioned throughput consumption that is returned in the response. |
||
11 | */ |
||
12 | protected $returnConsumedCapacity = ReturnConsumedCapacityOptions::NONE; |
||
13 | |||
14 | /** |
||
15 | * Registers the desired level of consumption detail to return. |
||
16 | * |
||
17 | * @param string $returnConsumedCapacity The level of consumption detail to return. |
||
18 | * @return mixed This object. |
||
19 | */ |
||
20 | 1 | final public function setReturnConsumedCapacity(string $returnConsumedCapacity) |
|
21 | { |
||
22 | 1 | $this->returnConsumedCapacity = $returnConsumedCapacity; |
|
23 | 1 | return $this; |
|
24 | } |
||
25 | |||
26 | /** |
||
27 | * {@inheritDoc} |
||
28 | */ |
||
29 | 18 | public function toArray(): array |
|
33 | ]; |
||
34 | } |
||
36 |