Completed
Push — master ( f9ded0...b13d5b )
by John
02:58 queued 01:00
created

BasicRequestFactory::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace LunixREST\APIRequest\RequestFactory;
3
4
use LunixREST\APIRequest\MIMEFileProvider;
5
use LunixREST\APIRequest\URLParser\BasicURLParser;
6
7
/**
8
 * A super basic RequestFactory. Uses a BasicURLParser, instantiated with a MIMEFileProvider
9
 * Class BasicRequestFactory
10
 * @package LunixREST\Request\RequestFactory
11
 */
12
class BasicRequestFactory extends DefaultRequestFactory
13
{
14 1
    public function __construct()
15
    {
16 1
        parent::__construct(new BasicURLParser(new MIMEFileProvider()));
17 1
    }
18
}
19