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