Download   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 33
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getMethod() 0 4 1
A getParams() 0 7 1
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