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

SelfDescription   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 16
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\Dimension;
4
5
use Happyr\ApiClient\Model\CreatableFromArray;
6
7
/**
8
 * @author Tobias Nyholm <[email protected]>
9
 */
10
final class SelfDescription implements CreatableFromArray
11
{
12
    private function __construct()
13
    {
14
    }
15
16
    /**
17
     * @param array $data
18
     *
19
     * @return
20
     */
21
    public static function createFromArray(array $data)
22
    {
23
        return new self();
24
    }
25
}
26