Completed
Push — master ( 738b10...36c812 )
by Mike
02:22
created

Cancel   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 28
ccs 8
cts 8
cp 1
rs 10

3 Methods

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