| Total Complexity | 8 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Siblings extends Base |
||
| 10 | { |
||
| 11 | use HasLimit { |
||
|
|
|||
| 12 | limit as baseLimit; |
||
| 13 | } |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Match the eagerly loaded results to their parents. |
||
| 17 | * |
||
| 18 | * @param array $models |
||
| 19 | * @param \Illuminate\Database\Eloquent\Collection $results |
||
| 20 | * @param string $relation |
||
| 21 | * @return array |
||
| 22 | */ |
||
| 23 | public function match(array $models, Collection $results, $relation) |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Set the "limit" value of the query. |
||
| 45 | * |
||
| 46 | * @param int $value |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | public function limit($value) |
||
| 58 |