diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-02 22:35:31 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-10-02 22:35:31 +0200 |
commit | bcbffdb644a125e436d40ba83fdd45dba8362181 (patch) | |
tree | 8cb218f152166b2cdee5b1ed440409c11fb39627 /lib/public/AppFramework/Http | |
parent | 7d9052d4b9d4ac690c32d7f9e79da2a06b0df055 (diff) | |
download | nextcloud-server-bcbffdb644a125e436d40ba83fdd45dba8362181.tar.gz nextcloud-server-bcbffdb644a125e436d40ba83fdd45dba8362181.zip |
Add PHPDoc
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public/AppFramework/Http')
-rw-r--r-- | lib/public/AppFramework/Http/ZipResponse.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/lib/public/AppFramework/Http/ZipResponse.php b/lib/public/AppFramework/Http/ZipResponse.php index 712af17d2d7..630efb38c7d 100644 --- a/lib/public/AppFramework/Http/ZipResponse.php +++ b/lib/public/AppFramework/Http/ZipResponse.php @@ -23,15 +23,16 @@ declare(strict_types=1); * */ -/** - * Public library to send several files in one zip archive. - */ - namespace OCP\AppFramework\Http; use OCP\IRequest; use OC\Streamer; +/** + * Public library to send several files in one zip archive. + * + * @since 15.0.0 + */ class ZipResponse extends Response implements ICallbackResponse { /** @var resource[] Files to be added to the zip response */ private $resources; @@ -39,11 +40,17 @@ class ZipResponse extends Response implements ICallbackResponse { private $name; private $request; + /** + * @since 15.0.0 + */ public function __construct(IRequest $request, string $name = 'output') { $this->name = $name; $this->request = $request; } + /** + * @since 15.0.0 + */ public function addResource($r, string $internalName, int $size, int $time = -1) { if (!\is_resource($r)) { throw new \InvalidArgumentException('No resource provided'); @@ -57,6 +64,9 @@ class ZipResponse extends Response implements ICallbackResponse { ]; } + /** + * @since 15.0.0 + */ public function callback(IOutput $output) { $size = 0; $files = count($this->resources); |