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

LimitAwareOperationTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setLimit() 0 4 1
1
<?php
2
3
namespace Guillermoandrae\DynamoDb\Contract;
4
5
trait LimitAwareOperationTrait
6
{
7
    /**
8
     * @var int The result limit.
9
     */
10
    protected $limit;
11
12
    /**
13
     * Registers the result limit with this object.
14
     *
15
     * @param integer $limit The result limit.
16
     * @return mixed An implementation of this trait.
17
     */
18 2
    final public function setLimit(int $limit)
19
    {
20 2
        $this->limit = $limit;
21 2
        return $this;
22
    }
23
}
24