Skip to content
Snippets Groups Projects
Commit 65736276 authored by Tobias Gross-Vogt's avatar Tobias Gross-Vogt
Browse files

getCoursesByPerson -> getCoursesByLecturer

parent b89ed54f
No related branches found
No related tags found
No related merge requests found
Pipeline #106396 passed
......@@ -24,7 +24,7 @@ interface CourseProviderInterface
/**
* @return Course[]
*/
public function getCoursesByPerson(string $personId, array $options = []): array;
public function getCoursesByLecturer(string $lecturerId, array $options = []): array;
/**
* @return CourseAttendee[]
......
......@@ -50,7 +50,7 @@ final class CourseCollectionDataProvider extends AbstractController implements C
$courses = $this->courseProvider->getCoursesByOrganization($organizationId, $options);
}
if (!empty($lecturerId)) {
$coursesByPerson = $this->courseProvider->getCoursesByPerson($lecturerId, $options);
$coursesByPerson = $this->courseProvider->getCoursesByLecturer($lecturerId, $options);
if (!empty($organizationId)) {
$courses = array_uintersect($courses, $coursesByPerson,
'Dbp\Relay\BaseCourseBundle\DataProvider\CourseCollectionDataProvider::compareCourses');
......
......@@ -43,7 +43,7 @@ class DummyCourseProvider implements CourseProviderInterface
return [$attendee];
}
public function getCoursesByPerson(string $personId, array $options = []): array
public function getCoursesByLecturer(string $lecturerId, array $options = []): array
{
return $this->getCourses($options);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment