License   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 3 1
A check() 0 5 1
1
<?php
2
/* 
3
	Author: Irfa Ardiansyah <[email protected]>
4
*/
5
namespace Irfa\AppLicenseClient\Func;
6
7
use Irfa\AppLicenseClient\Core\SerialConnector;
8
9
class License extends SerialConnector
10
{
11
12
    public function check()
13
    {
14
        $res = $this->checkSN();
15
16
        return $res;
17
    }
18
19
    public function get()
20
    {
21
        return (object)['active' => $this->res_active,'message' => $this->res_message];
22
    }
23
24
}
25