Skip to content
Snippets Groups Projects
CourseProviderInterface.php 615 B
Newer Older
<?php

declare(strict_types=1);

namespace Dbp\Relay\BaseCourseBundle\API;
use Dbp\Relay\BaseCourseBundle\Entity\Course;
use Dbp\Relay\CoreBundle\Exception\ApiError;
use Dbp\Relay\CoreBundle\Pagination\Paginator;

interface CourseProviderInterface
{
    /**
     * @throws ApiError
     */
    public function getCourseById(string $identifier, array $options = []): Course;
    public function getCourses(array $options = []): Paginator;
    public function getAttendeesByCourse(string $courseId, array $options = []): Paginator;