| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 71.43% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | trait Relation |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Define an inverse one-to-one or many relationship with \App\Models\Company. |
||
| 18 | * |
||
| 19 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 20 | */ |
||
| 21 | 8 | public function company(): BelongsTo |
|
| 22 | { |
||
| 23 | 8 | return $this->belongsTo(Company::class); |
|
|
|
|||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Return \App\Models\Company model relation value. |
||
| 28 | * |
||
| 29 | * @return \App\Models\Company |
||
| 30 | */ |
||
| 31 | public function getCompanyRelationValue(): Company |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Set \App\Models\Company model relation value. |
||
| 38 | * |
||
| 39 | * @param \App\Models\Company $company |
||
| 40 | * @return $this |
||
| 41 | */ |
||
| 42 | 1 | public function setCompanyRelationValue(Company $company) |
|
| 49 |