| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class AssociationRepository extends BaseRepository |
||
| 8 | { |
||
| 9 | |||
| 10 | |||
| 11 | /** |
||
| 12 | * Specify Model class name |
||
| 13 | * |
||
| 14 | * @return mixed |
||
| 15 | */ |
||
| 16 | function model() |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getAssociationWithPresidentAndCountry() |
||
| 22 | { |
||
| 23 | return Association::with('president', 'federation.country'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function findByIdWithTrash($id) |
||
| 29 | } |
||
| 30 | |||
| 31 | } |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.