| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Inquiry extends Model |
||
| 9 | { |
||
| 10 | use HasFactory; |
||
| 11 | |||
| 12 | protected $guarded = []; |
||
| 13 | |||
| 14 | // Casts |
||
| 15 | protected $casts = [ |
||
| 16 | 'data' => 'array', |
||
| 17 | ]; |
||
| 18 | |||
| 19 | public function __construct(array $attributes = []) |
||
| 24 | } |
||
| 25 | |||
| 26 | // Relationships |
||
| 27 | public function product() |
||
| 28 | { |
||
| 29 | return $this->belongsTo(Product::class); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function software() |
||
| 33 | { |
||
| 34 | return $this->belongsTo(Software::class); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function service() |
||
| 40 | } |
||
| 41 | } |
||
| 42 |