@@ -32,6 +32,9 @@ discard block |
||
| 32 | 32 | /** @var string */ |
| 33 | 33 | private $serverMode; |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $serverMode |
|
| 37 | + */ |
|
| 35 | 38 | public function __construct(RemoteStorage $remoteStorage, $serverMode) |
| 36 | 39 | { |
| 37 | 40 | $this->remoteStorage = $remoteStorage; |
@@ -51,6 +54,9 @@ discard block |
||
| 51 | 54 | return $response; |
| 52 | 55 | } |
| 53 | 56 | |
| 57 | + /** |
|
| 58 | + * @param TokenInfo $tokenInfo |
|
| 59 | + */ |
|
| 54 | 60 | public function head(Request $request, $tokenInfo) |
| 55 | 61 | { |
| 56 | 62 | // XXX return headers only? |
@@ -55,6 +55,9 @@ discard block |
||
| 55 | 55 | return 200 <= $this->statusCode && 300 > $this->statusCode; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | + /** |
|
| 59 | + * @param string $key |
|
| 60 | + */ |
|
| 58 | 61 | public function addHeader($key, $value) |
| 59 | 62 | { |
| 60 | 63 | $this->headers[$key] = $value; |
@@ -94,6 +97,9 @@ discard block |
||
| 94 | 97 | return $output; |
| 95 | 98 | } |
| 96 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $fileName |
|
| 102 | + */ |
|
| 97 | 103 | public function setFile($fileName) |
| 98 | 104 | { |
| 99 | 105 | $this->addHeader('X-SENDFILE', $fileName); |