<?php  namespace App\Traits;  use App\Models\Status; use App\Enums\StatusGroup; use App\Models\StatusItem; use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Database\Eloquent\Relations\MorphMany;  trait HasStatuses { 	abstract public static function getDefaultStatus(): Status;  	protected static function bootHasStatuses(): void 	{ 		static::deleting(static function (object $model): void { 			$model->statuses->each(static function (StatusItem $item): void { 				$item->delete(); 			}); 		}); 	}  	public function statuses(): MorphMany{}  	public function lastStatus(): HasOne{}  	public function lastStatusId(): ?string{}  	public function lastStatusGroup(): ?StatusGroup{} }