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

AttendanceReport::getParams()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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