Passed
Pull Request — master (#9)
by mouhsine
01:45
created

AttendanceReport   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 26
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getMethod() 0 4 1
A getParams() 0 4 1
1
<?php
2
namespace mikemix\Wiziq\API\Request;
3
4
use mikemix\Wiziq\Common\Api\RequestInterface;
5
use mikemix\Wiziq\Entity\Classroom;
6
7
class AttendanceReport implements RequestInterface
8
{
9
    /** @var ClassroomId */
10
    private $classroomId;
11
12 3
    public function __construct($classroomId)
13
    {
14 3
        $this->classroomId = $classroomId;
15 3
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20 1
    public function getMethod()
21
    {
22 1
        return 'get_attendance_report';
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28 1
    public function getParams()
29
    {
30 1
       return ['class_id' => $this->classroomId];
31
    }
32
}
33