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

declare(strict_types=1);

namespace Dbp\Relay\CourseBundle\API;

use Dbp\Relay\CourseBundle\Entity\Course;

interface CourseProviderInterface
{
    public function getCourseById(string $identifier, array $options = []): ?Course;

    /**
     * @return Course[]
     */
    public function getCourses(array $options = []): array;

    /**
     * @return Course[]
     */
    public function getCoursesByOrganization(string $orgUnitId, array $options = []): array;
}