Test Failed
Push — master ( eb0841...4f230c )
by Béla
03:53
created

UriProcessorWrapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 1
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 3 1
1
<?php
2
3
namespace POData\UriProcessor;
4
5
use POData\IService;
6
use POData\UriProcessor\UriProcessor;
7
8
/**
9
 * Class UriProcessor
10
 *
11
 * A type to process client's requets URI
12
 * The syntax of request URI is:
13
 *  Scheme Host Port ServiceRoot ResourcePath ? QueryOption
14
 * For more details refer:
15
 * http://www.odata.org/developers/protocols/uri-conventions#UriComponents
16
 *
17
 * @package POData\UriProcessor
18
 */
19
class UriProcessorWrapper
20
{
21
   
22
    /**
23
     * Process the resource path and query options of client's request uri.
24
     *
25
     * @param IService $service Reference to the data service instance.
26
     *
27
     * @return URIProcessor
28
     *
29
     * @throws ODataException
30
     */
31
    public function process(IService $service)
32
    {
33
        return UriProcessor::process($service);
34
    }
35
36
}
37