Passed
Pull Request — master (#34)
by Charis
01:35
created

Factory   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A Uri() 0 3 1
A Article() 0 3 1
1
<?php
2
namespace One;
3
4
class Factory
5
{
6
    public function Uri($string)
7
    {
8
        return createUriFromString($string);
9
    }
10
    public function Article($data)
11
    {
12
        return createArticleFromArray($data);
13
    }
14
}
15