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