<?php

declare(strict_types=1);

namespace Autogedal\PromoRules\Api;

use Autogedal\PromoRules\Api\Data\RuleConfigInterface;

/**
 * Repository contract for promo-rule configuration records.
 */
interface RuleConfigRepositoryInterface
{
    public function save(RuleConfigInterface $ruleConfig): RuleConfigInterface;

    public function getByRuleId(int $ruleId): RuleConfigInterface;

    public function delete(RuleConfigInterface $ruleConfig): bool;

    public function deleteById(int $configId): bool;
}
