Skip to content

Commit 2fe5881

Browse files
committed
Adds hassers for all types of data
1 parent 002eba6 commit 2fe5881

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

src/Message/InternalRequestInterface.php

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,18 @@ interface InternalRequestInterface extends RequestInterface
1919
/**
2020
* Returns some data by name
2121
*
22-
* @param string|null $name
22+
* @param string $name
2323
*
2424
* @return mixed
2525
*/
26-
public function getData($name = null);
26+
public function getData($name);
27+
28+
/**
29+
* Returns all data
30+
*
31+
* @return array
32+
*/
33+
public function getAllData();
2734

2835
/**
2936
* Checks if the data exists
@@ -34,6 +41,13 @@ public function getData($name = null);
3441
*/
3542
public function hasData($name);
3643

44+
/**
45+
* Checks if any data exists
46+
*
47+
* @return boolean
48+
*/
49+
public function hasAnyData();
50+
3751
/**
3852
* Sets some data by name
3953
*
@@ -88,6 +102,13 @@ public function getFiles();
88102
*/
89103
public function hasFile($name);
90104

105+
/**
106+
* Checks if any file exists
107+
*
108+
* @return boolean
109+
*/
110+
public function hasFiles();
111+
91112
/**
92113
* Sets a file by name
93114
*

0 commit comments

Comments
 (0)