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

Factory::createData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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