AbstractOperation::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 3
cts 3
cp 1
cc 1
nc 1
nop 2
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 50
    public function __construct(DynamoDbClient $client, Marshaler $marshaler)
24
    {
25 50
        $this->setClient($client);
26 50
        $this->setMarshaler($marshaler);
27 50
    }
28
}
29