quiz_maker-1.0.6/src/SimpleScoringResponseInterface.php

src/SimpleScoringResponseInterface.php
<?php

namespace Drupal\quiz_maker;

/**
 * Defines an interface for question response that have a simple scoring option.
 */
interface SimpleScoringResponseInterface {

  /**
   * TRUE if response is correct.
   *
   * @param int $response_id
   *   The current response id.
   * @param int $answer_id
   *   The current answer id.
   * @param array $response_ids
   *   The array if response ids.
   * @param array $answer_ids
   *   The array if answer ids.
   *
   * @return bool
   *   TRUE if response is correct, otherwise FALSE.
   */
  public function isResponseCorrect(int $response_id, int $answer_id, array $response_ids, array $answer_ids): bool;

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc