quiz-6.0.0-alpha4/src/Entity/QuizResultAnswerBroken.php

src/Entity/QuizResultAnswerBroken.php
<?php

namespace Drupal\quiz\Entity;

/**
 * Empty object if result answer is broke.
 */
class QuizResultAnswerBroken extends QuizResultAnswer {

  /**
   * {@inheritdoc}
   */
  public function getResponse() {
    return NULL;
  }

  /**
   * {@inheritdoc}
   */
  public function score(array $values): ?int {
    return NULL;
  }

}

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

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