License::check()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
rs 10
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