Skip to content
Snippets Groups Projects
Select Git revision
  • 59f28b27889efb1e31985733b72f7838b3f85ac1
  • main default protected
  • v0.2.0
  • v0.1.4
  • v0.1.3
  • v0.1.2
  • v0.1.1
  • v0.1.0
8 results

CourseProviderInterface.php

  • CourseProviderInterface.php 1011 B
    <?php
    
    declare(strict_types=1);
    
    namespace Dbp\Relay\BaseCourseBundle\API;
    
    use Dbp\Relay\BaseCourseBundle\Entity\Course;
    use Dbp\Relay\BaseCourseBundle\Entity\CourseAttendee;
    use Dbp\Relay\CoreBundle\Exception\ApiError;
    
    interface CourseProviderInterface
    {
        /**
         * @throws ApiError
         */
        public function getCourseById(string $identifier, array $options = []): Course;
    
        /**
         * @return Course[]
         *
         * @throws ApiError
         */
        public function getCourses(array $options = []): array;
    
        /**
         * @return Course[]
         *
         * @throws ApiError
         */
        public function getCoursesByOrganization(string $orgUnitId, array $options = []): array;
    
        /**
         * @return Course[]
         *
         * @throws ApiError
         */
        public function getCoursesByLecturer(string $lecturerId, array $options = []): array;
    
        /**
         * @return CourseAttendee[]
         *
         * @throws ApiError
         */
        public function getAttendeesByCourse(string $courseId, array $options = []): array;
    }