<?php
namespace App\Models;

use App\Core\Model;

class QuickReply extends Model {
    protected static string $table = 'quick_replies';

    public static function findByShortcut(string $shortcut): ?array {
        $shortcut = '/' . ltrim($shortcut, '/');
        return self::firstWhere('shortcut', $shortcut);
    }
}
