SN   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A generateSN() 0 7 2
1
<?php
2
/* 
3
	Author: Irfa Ardiansyah <[email protected]>
4
*/
5
namespace Irfa\SerialNumber\Core;
6
7
class SN extends SerialNumberGenerator
8
{
9
    private $generated_serial;
0 ignored issues
show
introduced by
The private property $generated_serial is not used, and could be removed.
Loading history...
10
    private $serial;
0 ignored issues
show
introduced by
The private property $serial is not used, and could be removed.
Loading history...
11
12
    protected function generateSN($json=false)
13
    {
14
    	if($json)
15
    	{
16
    		return json_encode(['sn'=>$this->generatingSN()]);
17
    	}
18
        return $this->generatingSN();
19
    }
20
21
}
22