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

Cancel::getParams()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4286
cc 1
eloc 3
nc 1
nop 0
crap 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