EscolaLMS/H5P

View on GitHub
src/Repositories/Contracts/H5PLibraryLanguageRepositoryContract.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace EscolaLms\HeadlessH5P\Repositories\Contracts;

use EscolaLms\HeadlessH5P\Models\H5PLibrary;
use EscolaLms\HeadlessH5P\Models\H5PLibraryLanguage;

interface H5PLibraryLanguageRepositoryContract
{
    public function getTranslation(H5PLibrary $library, string $langCode): ?string;

    public function getTranslationString($translation): string;

    public function update(H5PLibraryLanguage $libraryLanguage, H5PLibrary $library, string $languageCode): H5PLibraryLanguage;

    public function create(H5PLibrary $library, string $languageCode): ?H5PLibraryLanguage;

    public function createDefaults(H5PLibrary $library, string $languageCode, string $translation): ?H5PLibraryLanguage;
}