| Total Complexity | 3 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class MorphTo extends IlluminateMorphTo |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Set the base constraints on the relation query. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function addConstraints() |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get all of the relation results for a type. |
||
| 23 | * |
||
| 24 | * @param string $type |
||
| 25 | * @return \Illuminate\Database\Eloquent\Collection |
||
| 26 | */ |
||
| 27 | protected function getResultsByType($type) |
||
| 51 |