InternalRequestInterface::getDatas()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
ccs 0
cts 0
cp 0
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the Ivory Http Adapter package.
5
 *
6
 * (c) Eric GELOEN <[email protected]>
7
 *
8
 * For the full copyright and license information, please read the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Ivory\HttpAdapter\Message;
13
14
/**
15
 * @author GeLo <[email protected]>
16
 */
17
interface InternalRequestInterface extends RequestInterface
18
{
19
    /**
20
     * @return array
21
     */
22
    public function getDatas();
23
24
    /**
25
     * @param string $name
26
     *
27
     * @return bool
28
     */
29
    public function hasData($name);
30
31
    /**
32
     * @param string $name
33
     *
34
     * @return mixed
35
     */
36
    public function getData($name);
37
38
    /**
39
     * @param string $name
40
     * @param mixed  $value
41
     *
42
     * @return InternalRequestInterface
43
     */
44
    public function withData($name, $value);
45
46
    /**
47
     * @param string $name
48
     * @param mixed  $value
49
     *
50
     * @return InternalRequestInterface
51
     */
52
    public function withAddedData($name, $value);
53
54
    /**
55
     * @param string $name
56
     *
57
     * @return InternalRequestInterface
58
     */
59
    public function withoutData($name);
60
61
    /**
62
     * @return array
63
     */
64
    public function getFiles();
65
66
    /**
67
     * @param string $name
68
     *
69
     * @return bool
70
     */
71
    public function hasFile($name);
72
73
    /**
74
     * @param string $name
75
     *
76
     * @return string
77
     */
78
    public function getFile($name);
79
80
    /**
81
     * @param string $name
82
     * @param string $file
83
     *
84
     * @return InternalRequestInterface
85
     */
86
    public function withFile($name, $file);
87
88
    /**
89
     * @param string $name
90
     * @param string $file
91
     *
92
     * @return InternalRequestInterface
93
     */
94
    public function withAddedFile($name, $file);
95
96
    /**
97
     * @param string $name
98
     *
99
     * @return InternalRequestInterface
100
     */
101
    public function withoutFile($name);
102
}
103