Skip to content
Snippets Groups Projects
Select Git revision
  • 65736276e1d6f214cd50f1ec160d69a6c4f3dfba
  • 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

Blame
  • user avatar
    Tobias Gross-Vogt authored
    65736276
    History
    CourseProviderInterface.php 803 B
    <?php
    
    declare(strict_types=1);
    
    namespace Dbp\Relay\BaseCourseBundle\API;
    
    use Dbp\Relay\BaseCourseBundle\Entity\Course;
    use Dbp\Relay\BaseCourseBundle\Entity\CourseAttendee;
    
    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;
    
        /**
         * @return Course[]
         */
        public function getCoursesByLecturer(string $lecturerId, array $options = []): array;
    
        /**
         * @return CourseAttendee[]
         */
        public function getAttendeesByCourse(string $courseId, array $options = []): array;
    }