<?php

declare(strict_types=1);

namespace App\Framework\Database\Criteria;

/**
 * Base interface for all query criteria (WHERE conditions)
 */
interface Criterion
{
    /**
     * Convert criterion to SQL WHERE clause
     */
    public function toSql(): string;

    /**
     * Get parameter values for prepared statement
     */
    public function getParameters(): array;
}
