<?php

namespace Drupal\languagewire_translation_provider\Database;

use Drupal\languagewire_translation_provider\Adapter\TMGMT\TmgmtTranslatorInterface;

/**
 * Term Base Repository interface.
 */
interface TermBaseRepositoryInterface extends ConfigurationItemRepositoryInterface {

  /**
   * Save all.
   *
   * @param \Drupal\languagewire_translation_provider\Client\TermBase[] $items
   *   Term base items.
   * @param \Drupal\languagewire_translation_provider\Adapter\TMGMT\TmgmtTranslatorInterface $translator
   *   Translator.
   */
  public function saveAll(array $items, TmgmtTranslatorInterface $translator): void;

  /**
   * Get all.
   *
   * @param \Drupal\languagewire_translation_provider\Adapter\TMGMT\TmgmtTranslatorInterface $translator
   *   Translator.
   *
   * @return \Drupal\languagewire_translation_provider\Client\TermBase[]
   *   Term base items.
   */
  public function getAll(TmgmtTranslatorInterface $translator): array;

}
