Completed
Push — master ( ff5b0d...faa513 )
by Tobias
05:10 queued 02:50
created

Statement   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A createFromArray() 0 4 1
1
<?php
2
3
namespace Happyr\ApiClient\Model\Statement;
4
5
use Happyr\ApiClient\Model\CreatableFromArray;
6
7
/**
8
 * @author Tobias Nyholm <[email protected]>
9
 */
10
final class Statement implements CreatableFromArray
11
{
12
    /**
13
     * @var string
14
     */
15
    private $id;
0 ignored issues
show
Unused Code introduced by
The property $id is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
16
17
    /**
18
     * @var string
19
     */
20
    private $sentence;
0 ignored issues
show
Unused Code introduced by
The property $sentence is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
21
22
    /**
23
     * @var array
24
     */
25
    private $assessments;
0 ignored issues
show
Unused Code introduced by
The property $assessments is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
26
27
    /**
28
     * @var int
29
     */
30
    private $progress;
0 ignored issues
show
Unused Code introduced by
The property $progress is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
31
32
    /**
33
     * @var string
34
     */
35
    private $postUrl;
0 ignored issues
show
Unused Code introduced by
The property $postUrl is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
36
37
    /**
38
     * @var string
39
     */
40
    private $fullPostUrl;
0 ignored issues
show
Unused Code introduced by
The property $fullPostUrl is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
41
42
    /**
43
     * @var string
44
     */
45
    private $section;
0 ignored issues
show
Unused Code introduced by
The property $section is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
46
47
    /**
48
     * @var string
49
     */
50
    private $type;
0 ignored issues
show
Unused Code introduced by
The property $type is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
51
52
    private function __construct()
53
    {
54
    }
55
56
    /**
57
     * @param array $data
58
     *
59
     * @return
60
     */
61
    public static function createFromArray(array $data)
62
    {
63
        return new self();
64
    }
65
}
66