Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
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) |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * {@inheritDoc} |
||
26 | */ |
||
27 | 2 | public function toArray(): array |
|
34 |