@@ -39,6 +39,9 @@ |
||
| 39 | 39 | return $target; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | + /** |
|
| 43 | + * @param string $requestTarget |
|
| 44 | + */ |
|
| 42 | 45 | public function withRequestTarget($requestTarget): self |
| 43 | 46 | { |
| 44 | 47 | if (preg_match('#\s#', $requestTarget)) { |
@@ -87,6 +87,9 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | + /** |
|
| 91 | + * @param integer $error |
|
| 92 | + */ |
|
| 90 | 93 | private function setError($error): void |
| 91 | 94 | { |
| 92 | 95 | if (false === is_int($error)) { |
@@ -100,6 +103,9 @@ discard block |
||
| 100 | 103 | $this->error = $error; |
| 101 | 104 | } |
| 102 | 105 | |
| 106 | + /** |
|
| 107 | + * @param integer $size |
|
| 108 | + */ |
|
| 103 | 109 | private function setSize($size): void |
| 104 | 110 | { |
| 105 | 111 | if (false === is_int($size)) { |
@@ -114,11 +120,17 @@ discard block |
||
| 114 | 120 | return in_array(gettype($param), ['string', 'NULL']); |
| 115 | 121 | } |
| 116 | 122 | |
| 123 | + /** |
|
| 124 | + * @param string $param |
|
| 125 | + */ |
|
| 117 | 126 | private function isStringNotEmpty($param): bool |
| 118 | 127 | { |
| 119 | 128 | return is_string($param) && false === empty($param); |
| 120 | 129 | } |
| 121 | 130 | |
| 131 | + /** |
|
| 132 | + * @param string|null $clientFilename |
|
| 133 | + */ |
|
| 122 | 134 | private function setClientFilename($clientFilename): void |
| 123 | 135 | { |
| 124 | 136 | if (false === $this->isStringOrNull($clientFilename)) { |
@@ -128,6 +140,9 @@ discard block |
||
| 128 | 140 | $this->clientFilename = $clientFilename; |
| 129 | 141 | } |
| 130 | 142 | |
| 143 | + /** |
|
| 144 | + * @param string|null $clientMediaType |
|
| 145 | + */ |
|
| 131 | 146 | private function setClientMediaType($clientMediaType): void |
| 132 | 147 | { |
| 133 | 148 | if (false === $this->isStringOrNull($clientMediaType)) { |