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

BasicRequestFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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