1 | <?php |
||
8 | class TeacherApi implements TeacherApiInterface |
||
9 | { |
||
10 | /** @var Gateway */ |
||
11 | protected $gateway; |
||
12 | |||
13 | 4 | public function __construct(Gateway $requester) |
|
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | 1 | public function addTeacher(Teacher $teacher) |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 1 | public function editTeacher($teacherId, Teacher $teacher) |
|
34 | |||
35 | /** |
||
36 | * Get $teacherId details |
||
37 | * |
||
38 | * @param int $teacherId Wiziq's teacher ID |
||
39 | * @return array Teacher's details |
||
40 | * |
||
41 | * @throws Exception\CallException |
||
42 | */ |
||
43 | 1 | public function getTeacherDetails($teacherId) |
|
62 | } |
||
63 |