AbstractOperation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 14
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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