Stat   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 53
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createInstance() 0 10 2
1
<?php
2
3
namespace Padosoft\AffiliateNetwork;
4
5
/**
6
 * Class Stat
7
 * @package Padosoft\AffiliateNetwork
8
 */
9
class Stat
10
{
11
    /**
12
     * @var string
13
     */
14
    public $currency = '';
15
16
    /**
17
     * @var string
18
     */
19
    public $date = '';
20
21
    /**
22
     * @var array
23
     */
24
    public $total = array();
25
26
    /**
27
     * @var array
28
     */
29
    public $open = array();
30
31
    /**
32
     * @var array
33
     */
34
    public $approved = array();
35
36
    /**
37
     * @var array
38
     */
39
    public $confirmed = array();
40
41
    /**
42
     * @var array
43
     */
44
    public $reject = array();
45
46
    /**
47
     * @method createInstance
48
     * @return obj istance
49
     */
50
    public static function createInstance()
51
    {
52
        $obj = null;
53
        try {
54
            $obj = new Stat();
55
        } catch (\Exception $e) {
56
            throw new \Exception('Error creating instance Stat - ' . $e->getMessage());
57
        }
58
        return $obj;
59
    }
60
61
}
62