GetTeacherDetails   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 26
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

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