| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | trait Relation |
||
| 16 | { |
||
| 17 | use MorphToIssuerable; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Define an inverse one-to-one or many relationship with \App\Models\Order. |
||
| 21 | * |
||
| 22 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 23 | */ |
||
| 24 | public function order(): BelongsTo |
||
| 25 | { |
||
| 26 | return $this->belongsTo(Order::class); |
||
|
|
|||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Return \App\Models\Order model relation value. |
||
| 31 | * |
||
| 32 | * @return \App\Models\Order |
||
| 33 | */ |
||
| 34 | public function getOrderRelationValue(): Order |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Set \App\Models\Order model relation value. |
||
| 41 | * |
||
| 42 | * @param \App\Models\Order $order |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | public function setOrderRelationValue(Order $order) |
||
| 50 | } |
||
| 51 | } |
||
| 52 |