Completed
Push — master ( 65b043...dd1ab4 )
by Guillermo A.
02:55
created

AbstractOperation::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Guillermoandrae\DynamoDb\Contract;
4
5
use Aws\DynamoDb\DynamoDbClient;
6
use Aws\DynamoDb\Marshaler;
7
8
/**
9
 * Abstract for operations.
10
 *
11
 * @author Guillermo A. Fisher <[email protected]>
12
 */
13
abstract class AbstractOperation implements OperationInterface
14
{
15
    use DynamoDbClientAwareTrait;
16
17
    /**
18
     * Registers the DynamoDb client and Marshaler with this object.
19
     *
20
     * @param DynamoDbClient $client The DynamoDb client.
21
     * @param Marshaler $marshaler The Marshaler.
22
     */
23 45
    public function __construct(DynamoDbClient $client, Marshaler $marshaler)
24
    {
25 45
        $this->setClient($client);
26 45
        $this->setMarshaler($marshaler);
27 45
    }
28
}
29