Completed
Push — master ( 390392...0deaad )
by John
10:29
created

ApiTestRequest::setServer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php declare(strict_types=1);
2
/*
3
 * This file is part of the KleijnWeb\SwaggerBundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace KleijnWeb\SwaggerBundle\Test;
10
11
use Symfony\Component\BrowserKit\Request;
12
13
/**
14
 * @author John Kleijn <[email protected]>
15
 */
16
class ApiTestRequest extends Request
17
{
18
    /**
19
     * @param string $uri
20
     *
21
     * @return ApiTestRequest
22
     */
23
    public function setUri(string $uri): ApiTestRequest
24
    {
25
        $this->uri = $uri;
26
27
        return $this;
28
    }
29
30
    /**
31
     * @param string $method
32
     *
33
     * @return ApiTestRequest
34
     */
35
    public function setMethod(string $method): ApiTestRequest
36
    {
37
        $this->method = $method;
38
39
        return $this;
40
    }
41
42
    /**
43
     * @param array $parameters
44
     *
45
     * @return ApiTestRequest
46
     */
47
    public function setParameters(array $parameters): ApiTestRequest
48
    {
49
        $this->parameters = $parameters;
50
51
        return $this;
52
    }
53
54
    /**
55
     * @param array $files
56
     *
57
     * @return ApiTestRequest
58
     */
59
    public function setFiles(array $files): ApiTestRequest
60
    {
61
        $this->files = $files;
62
63
        return $this;
64
    }
65
66
    /**
67
     * @param array $cookies
68
     *
69
     * @return ApiTestRequest
70
     */
71
    public function setCookies(array $cookies): ApiTestRequest
72
    {
73
        $this->cookies = $cookies;
74
75
        return $this;
76
    }
77
78
    /**
79
     * @param array $server
80
     *
81
     * @return ApiTestRequest
82
     */
83
    public function setServer(array $server): ApiTestRequest
84
    {
85
        $this->server = $server;
86
87
        return $this;
88
    }
89
90
    /**
91
     * @param mixed $content
92
     *
93
     * @return ApiTestRequest
94
     */
95
    public function setContent($content): ApiTestRequest
96
    {
97
        $this->content = $content;
98
99
        return $this;
100
    }
101
}
102