Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | namespace Illuminate\Contracts\Database\Eloquent; |
| 4 | |
| 5 | interface SupportsPartialRelations |
| 6 | { |
| 7 | /** |
| 8 | * Indicate that the relation is a single result of a larger one-to-many relationship. |
| 9 | * |
| 10 | * @param string|null $column |
| 11 | * @param string|\Closure|null $aggregate |
| 12 | * @param string $relation |
| 13 | * @return $this |
| 14 | */ |
| 15 | public function ofMany($column = 'id', $aggregate = 'MAX', $relation = null); |
| 16 | |
| 17 | /** |
| 18 | * Determine whether the relationship is a one-of-many relationship. |
| 19 | * |
| 20 | * @return bool |
| 21 | */ |
| 22 | public function isOneOfMany(); |
| 23 | |
| 24 | /** |
| 25 | * Get the one of many inner join subselect query builder instance. |
| 26 | * |
| 27 | * @return \Illuminate\Database\Eloquent\Builder|void |
| 28 | */ |
| 29 | public function getOneOfManySubQuery(); |
| 30 | } |