@@ -79,6 +79,9 @@ discard block |
||
79 | 79 | } |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param integer $error |
|
84 | + */ |
|
82 | 85 | private function setError($error): void |
83 | 86 | { |
84 | 87 | if (false === is_int($error)) { |
@@ -92,6 +95,9 @@ discard block |
||
92 | 95 | $this->error = $error; |
93 | 96 | } |
94 | 97 | |
98 | + /** |
|
99 | + * @param integer $size |
|
100 | + */ |
|
95 | 101 | private function setSize($size): void |
96 | 102 | { |
97 | 103 | if (false === is_int($size)) { |
@@ -106,11 +112,17 @@ discard block |
||
106 | 112 | return in_array(gettype($param), ['string', 'NULL']); |
107 | 113 | } |
108 | 114 | |
115 | + /** |
|
116 | + * @param string $param |
|
117 | + */ |
|
109 | 118 | private function isStringNotEmpty($param): bool |
110 | 119 | { |
111 | 120 | return is_string($param) && false === empty($param); |
112 | 121 | } |
113 | 122 | |
123 | + /** |
|
124 | + * @param string|null $clientFilename |
|
125 | + */ |
|
114 | 126 | private function setClientFilename($clientFilename): void |
115 | 127 | { |
116 | 128 | if (false === $this->isStringOrNull($clientFilename)) { |
@@ -120,6 +132,9 @@ discard block |
||
120 | 132 | $this->clientFilename = $clientFilename; |
121 | 133 | } |
122 | 134 | |
135 | + /** |
|
136 | + * @param string|null $clientMediaType |
|
137 | + */ |
|
123 | 138 | private function setClientMediaType($clientMediaType): void |
124 | 139 | { |
125 | 140 | if (false === $this->isStringOrNull($clientMediaType)) { |
@@ -214,8 +229,8 @@ discard block |
||
214 | 229 | * |
215 | 230 | * @author Michael Dowling and contributors to guzzlehttp/psr7 |
216 | 231 | * |
217 | - * @param StreamInterface $source Stream to read from |
|
218 | - * @param StreamInterface $dest Stream to write to |
|
232 | + * @param \Psr\Http\Message\StreamInterface $source Stream to read from |
|
233 | + * @param \Psr\Http\Message\StreamInterface $dest Stream to write to |
|
219 | 234 | * @param int $maxLen Maximum number of bytes to read. Pass -1 |
220 | 235 | * to read the entire stream |
221 | 236 | * |