Completed
Push — master ( 2fd2f6...e7c3ef )
by Milan
01:35
created

Factory   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A createDataProvider() 0 4 1
A createData() 0 4 1
A createGuzzleClient() 0 4 1
1
<?php
2
3
namespace h4kuna\Ares;
4
5
use GuzzleHttp;
6
7
class Factory implements IFactory
8
{
9
10
	public function createDataProvider()
11
	{
12
		return new DataProvider($this);
13
	}
14
15
16
	public function createData(array $data)
17
	{
18
		return new Data($data);
19
	}
20
21
22
	public function createGuzzleClient()
23
	{
24
		return new GuzzleHttp\Client(['curl' => [CURLOPT_CONNECTTIMEOUT => 30]]);
25
	}
26
27
}
28