Test Failed
Pull Request — master (#9)
by mouhsine
01:34
created

AttendanceReport   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 26
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
    public function __construct($classroomId)
13
    {
14
        $this->classroomId = $classroomId;
15
    }
16
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function getMethod()
21
    {
22
        return 'get_attendance_report';
23
    }
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function getParams()
29
    {
30
       return ['class_id' => $this->classroomId];
31
    }
32
}
33