Completed
Push — master ( a7a349...3fc402 )
by Guillermo A.
03:23
created

AbstractOperation::__construct()   A

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
abstract class AbstractOperation extends AbstractDynamoDbClientAware implements OperationInterface
9
{
10
    /**
11
     * Registers the DynamoDb client and Marshaler with this object.
12
     *
13
     * @param DynamoDbClient $client The DynamoDb client.
14
     * @param Marshaler $marshaler The Marshaler.
15
     */
16 42
    public function __construct(DynamoDbClient $client, Marshaler $marshaler)
17
    {
18 42
        $this->setClient($client);
19 42
        $this->setMarshaler($marshaler);
20 42
    }
21
}
22