Total Complexity | 1 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait MorphOneOrMany |
||
8 | { |
||
9 | use HasOneOrMany { |
||
10 | getRelationExistenceQuery as getRelationExistenceQueryParent; |
||
11 | } |
||
12 | |||
13 | /** |
||
14 | * Add the constraints for a relationship query. |
||
15 | * |
||
16 | * @param \Illuminate\Database\Eloquent\Builder $query |
||
17 | * @param \Illuminate\Database\Eloquent\Builder $parentQuery |
||
18 | * @param array|mixed $columns |
||
19 | * @return \Illuminate\Database\Eloquent\Builder |
||
20 | */ |
||
21 | 2 | public function getRelationExistenceQuery(Builder $query, Builder $parentQuery, $columns = ['*']) |
|
27 |