GetTeacherDetails::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
namespace mikemix\Wiziq\API\Request;
3
4
use mikemix\Wiziq\Common\Api\RequestInterface;
5
6
class GetTeacherDetails implements RequestInterface
7
{
8
    /** @var int */
9
    private $teacherId;
10
11 3
    public function __construct($teacherId)
12
    {
13 3
        $this->teacherId = (int)$teacherId;
14 3
    }
15
16
    /**
17
     * {@inheritdoc}
18
     */
19 1
    public function getMethod()
20
    {
21 1
        return 'get_teacher_details';
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27 1
    public function getParams()
28
    {
29 1
        return ['teacher_id' => $this->teacherId];
30
    }
31
}
32