Completed
Push — master ( 005b00...a8a0a1 )
by John
01:59
created

BasicRequestFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
namespace LunixREST\Request\RequestFactory;
3
4
use LunixREST\Request\MIMEFileProvider;
5
use LunixREST\Request\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 1
    public function __construct() {
14 1
        parent::__construct(new BasicURLParser(new MIMEFileProvider()));
15 1
    }
16
}
17