Passed
Push — master ( ffa7be...fb5c02 )
by Radu
01:19
created

Request   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 10
dl 0
loc 27
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getArgs() 0 3 1
A __construct() 0 5 1
A getMethod() 0 3 1
A getBody() 0 3 1
1
<?php
2
namespace WebServCo\Framework\Libraries;
3
4
final class Request extends \WebServCo\Framework\AbstractRequest implements
5
    \WebServCo\Framework\Interfaces\RequestInterface
6
{
7
    use \WebServCo\Framework\Traits\RequestProcessTrait;
8
    use \WebServCo\Framework\Traits\RequestServerTrait;
9
    use \WebServCo\Framework\Traits\RequestUrlTrait;
10
11
    public function __construct($settings, $server, $post = [])
12
    {
13
        parent::__construct($settings);
14
15
        $this->init($server, $post);
16
    }
17
18
    public function getArgs()
19
    {
20
        return $this->args;
21
    }
22
23
    public function getBody()
24
    {
25
        return $this->body;
26
    }
27
28
    public function getMethod()
29
    {
30
        return $this->method;
31
    }
32
}
33