Completed
Push — master ( d60f81...d9c7b0 )
by Viacheslav
02:04
created

CourseApi   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A addStudent() 0 3 1
1
<?php
2
3
4
namespace slavkluev\Bizon365\Api;
5
6
class CourseApi extends AbstractApi
7
{
8
    const METHODS = [
9
        'add.student' => 'course/student/add',
10
    ];
11
12 3
    public function addStudent(array $student)
13
    {
14 3
        return $this->post(self::METHODS['add.student'], $student);
15
    }
16
}
17