Test Failed
Push — master ( 9a7899...702660 )
by Mike
44s queued 11s
created

Download::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
namespace mikemix\Wiziq\API\Request;
3
4
use mikemix\Wiziq\Common\Api\RequestInterface;
5
6
class Download implements RequestInterface
7
{
8
    /** @var int */
9
    private $classroomId;
10
11
    private $recordingFormat;
12
13
    public function __construct($classroomId, $recordingFormat)
14
    {
15
        $this->classroomId = $classroomId;
16
17
        $this->recordingFormat = $recordingFormat;
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function getMethod()
24
    {
25
        return 'download_recording';
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getParams()
32
    {
33
        return [
34
            'class_id'  => $this->classroomId,
35
            'recording_format'  => $this->recordingFormat
36
        ];
37
    }
38
}
39