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') {