| Total Complexity | 1 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | trait HasRelationships |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | protected $relationships = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Scope Plan search results to only plans that are 'public'. |
||
| 14 | * |
||
| 15 | * @param array $relationships |
||
| 16 | * @return $this |
||
| 17 | */ |
||
| 18 | public function withRelationships(array $relationships = []): self |
||
| 25 |