Completed
Push — master ( 20a668...02e94f )
by Guillermo A.
02:17
created

LimitAwareRequestTrait::setLimit()   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 0
Metric Value
eloc 2
dl 0
loc 4
c 0
b 0
f 0
ccs 3
cts 3
cp 1
rs 10
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Guillermoandrae\DynamoDb;
4
5
trait LimitAwareRequestTrait
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 4
    final public function setLimit(int $limit)
19
    {
20 4
        $this->limit = $limit;
21 4
        return $this;
22
    }
23
}
24