ClientFactory::getInstance()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
1
<?php namespace BinPacking3d;
2
3
use GuzzleHttp\Client;
4
5
class ClientFactory
6
{
7
8
    public static function getInstance($url, $pem)
9
    {
10
        return new Client(
11
            [
12
                'base_uri' => $url,
13
                'timeout' => 2.0,
14
                'verify' => $pem,
15
            ]
16
        );
17
    }
18
}
19