Request::getMethod()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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