You are here

TincanServiceInterface.php in Opigno module 3.x

Same filename and directory in other branches
  1. 8 ActivityTypes/opigno_tincan_activity/src/TincanServiceInterface.php

File

ActivityTypes/opigno_tincan_activity/src/TincanServiceInterface.php
View source
<?php

namespace Drupal\opigno_tincan_activity;

use Drupal\file\Entity\File;

/**
 * Interface TincanServiceInterface.
 */
interface TincanServiceInterface {

  /**
   * Save tincan package.
   *
   * @param \Drupal\file\Entity\File $file
   *   File object.
   *
   * @return int
   *   Downloaded file $fid.
   */
  public function saveTincanPackageInfo(File $file);

  /**
   * Get the maximum possible score for this question.
   */
  public function getMaximumScore();

  /**
   * Implementation of deleteTincanPackage().
   */
  public function deleteTincanPackage();

  /**
   * Get Tincan data by it's file id.
   *
   * @param object \Drupal\file\Entity\File $file
   *   File entity.
   */
  public function tincanLoadByFileEntity(File $file);

}

Interfaces

Namesort descending Description
TincanServiceInterface Interface TincanServiceInterface.