| Total Complexity | 4 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | trait DynamoDbClientAwareTrait |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var DynamoDbClient The DynamoDb client. |
||
| 17 | */ |
||
| 18 | protected DynamoDbClient $client; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Marshaler The Marshaler. |
||
| 22 | */ |
||
| 23 | protected Marshaler $marshaler; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Returns the client. |
||
| 27 | * |
||
| 28 | * @return DynamoDbClient The client. |
||
| 29 | */ |
||
| 30 | 12 | public function getClient(): DynamoDbClient |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Registers the client. |
||
| 37 | * |
||
| 38 | * @param DynamoDbClient $client The client. |
||
| 39 | * @return static This object. |
||
| 40 | */ |
||
| 41 | 54 | public function setClient(DynamoDbClient $client): static |
|
| 42 | { |
||
| 43 | 54 | $this->client = $client; |
|
| 44 | 54 | return $this; |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Returns the Marshaler. |
||
| 49 | * |
||
| 50 | * @return Marshaler The Marshaler. |
||
| 51 | */ |
||
| 52 | 20 | public function getMarshaler(): Marshaler |
|
| 53 | { |
||
| 54 | 20 | return $this->marshaler; |
|
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Registers the Marshaler with this object. |
||
| 59 | * |
||
| 60 | * @param Marshaler $marshaler The Marshaler. |
||
| 61 | * @return static This object. |
||
| 62 | */ |
||
| 63 | 54 | public function setMarshaler(Marshaler $marshaler): static |
|
| 67 | } |
||
| 68 | } |
||
| 69 |