Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait HasLimit |
||
6 | { |
||
7 | /** |
||
8 | * Alias to set the "limit" value of the query. |
||
9 | * |
||
10 | * @param int $value |
||
11 | * @return $this |
||
12 | */ |
||
13 | 20 | public function take($value) |
|
14 | { |
||
15 | 20 | return $this->limit($value); |
|
16 | } |
||
17 | |||
18 | /** |
||
19 | * Set the "limit" value of the query. |
||
20 | * |
||
21 | * @param int $value |
||
22 | * @return $this |
||
23 | */ |
||
24 | 64 | public function limit($value) |
|
33 | } |
||
34 | } |
||
35 |