<?php

declare(strict_types=1);

namespace Builder\Core\Foundation\Contracts;

use Illuminate\Database\Eloquent\Model;

/**
 * Implement this interface on a Resource to opt in to the global command-palette search.
 * The controller only searches resources that implement this contract.
 */
interface CommandPaletteSearchable
{
    public function searchResultTitle(Model $record): string;

    public function searchResultSubtitle(Model $record): ?string;
}
