From d76ccb0e757248702d94cbfda21e65e70d88195e Mon Sep 17 00:00:00 2001 From: Andreas Tasch Date: Wed, 13 Jul 2016 19:28:33 +0200 Subject: [PATCH] Adding docblocks. --- unzipper.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/unzipper.php b/unzipper.php index 79d5687..7ca4bf8 100644 --- a/unzipper.php +++ b/unzipper.php @@ -18,6 +18,9 @@ $timeend = microtime(TRUE); $time = $timeend - $timestart; +/** + * Class Unzipper + */ class Unzipper { public $localdir = '.'; public $zipfiles = array(); @@ -65,6 +68,12 @@ public function __construct() { } } + /** + * Checks file extension and calls suitable extractor functions. + * + * @param $archive + * @param $destination + */ public static function extract($archive, $destination) { $ext = pathinfo($archive, PATHINFO_EXTENSION); if ($ext === 'zip') {