Request   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

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

4 Methods

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