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