<?php  namespace App\Models;  use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations\MorphTo; use Illuminate\Database\Eloquent\Relations\BelongsTo;  class OrderItem extends Model { 	public function scopeIncludes(Builder $query): Builder{}  	public function order(): BelongsTo{}  	public function item(): MorphTo{}  	public static function getItemModel(array $item = []): Product|null 	{ 		if (!array_key_exists('type', $item)) { 			return null; 		}  		switch ($item['type']) { 			case Product::class: 				return Product::find($item['id']);  			default: 				return null; 		} 	} }